(()=>{var __webpack_modules__={61599:function(e,t,n){var a;!function(t){"use strict";function i(){}var s=i.prototype,o=[],r=!!o.indexOf;function c(e,t){if(r)return t.indexOf(e);for(var n=t.length;n--;)if(t[n]===e)return n;return-1}s.getListeners=function(e){var t=this._events||(this._events={});return t[e]||(t[e]=[])},s.addListener=function(e,t){var n=this.getListeners(e);return-1===c(t,n)&&n.push(t),this},s.removeListener=function(e,t){var n=this.getListeners(e),a=c(t,n);return-1!==a&&(n.splice(a,1),0===n.length&&(this._events[e]=null)),this},s.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},s.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},s.manipulateListeners=function(e,t,n){var a,i,s=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"==typeof t)for(a in t)t.hasOwnProperty(a)&&(i=t[a])&&("function"==typeof i?s.call(this,a,i):o.call(this,a,i));else for(a=n.length;a--;)s.call(this,t,n[a]);return this},s.removeEvent=function(e){return e?this._events[e]=null:this._events=null,this},s.emitEvent=function(e,t){for(var n=this.getListeners(e),a=n.length;a--;)!0===n[a].apply(null,t||o)&&this.removeListener(e,n[a]);return this},void 0===(a=function(){return i}.call(t,n,t,e))||(e.exports=a)}(this)},69599:(e,t,n)=>{var a={"./00_InlineAuth.js":81954,"./01_Vote.js":59441};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=s,e.exports=i,i.id=69599},30270:(e,t,n)=>{var a={"./se-char-counter.js":63972,"./se-draggable.js":9898,"./se-share-sheet.js":43796};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=s,e.exports=i,i.id=30270},34e3:(e,t,n)=>{var a={"./00_Header.js":31899,"./02_TopBar.js":86241,"./03_Notify.js":91487,"./04_MoveScroller.js":39960,"./05_StyleCode.js":13215,"./06_MagicPopup.js":77754,"./07_TagMenu.js":69977,"./08_UserMenu.js":85082,"./09_ChatAd.js":50266,"./10_TagSanitizer.js":20812,"./11_Question.js":65316,"./12_Comments.js":54087,"./14_TagRenderer.js":1539,"./15_FadingHelpText.js":6646,"./18_jQueryCaretPlugin.js":73624,"./19_NoCaptcha.js":11711,"./20_Analytics.js":85057,"./21_OpenID.js":1289,"./22_UniversalAuth.js":97953,"./33_AnonFkeyCookie.js":43745,"./34_jqueryUiLoader.js":84653,"./35_uploadTimings.js":45672,"./36_FlashMessage.js":86458,"./37_PrepareEditor.js":74010,"./39_Auth.js":92737,"./40_Hero.js":20344,"./41_Checklist.js":12802,"./44_StacksValidation.js":75556};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=s,e.exports=i,i.id=34e3},83133:(e,t,n)=>{var a={"./chess.mod":[50058,58],"./mathHideUserRep.mod":[37610,7610],"./poker.mod":[78087,8087]};function i(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(a),i.id=83133,e.exports=i},33184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Svg:()=>a}),StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{};class a{static GetImage(){return a._placeholder||(a._placeholder=function(){throw"Svg icon getters must be initialized before an icon can be retrieved"},a._placeholder.With=a._placeholder),a._placeholder}static init(e,t){"/"!==e[e.length-1]&&(e+="/"),a.rootPath=e,a.cacheBreaker=t;var n=[];for(var i in a)a.hasOwnProperty(i)&&a[i]===a._placeholder&&n.push(i);for(var s=0;s<n.length;s++)a[n[s]]=o(n[s]);function o(e){var t=function(){return a.get(e)};return t.With=function(t){var n=a.get(e);return n.addClass(t),n},t}}static ensureCSS(){if(!a.cssAdded){var e=document.createElement("style");e.setAttribute("type","text/css"),e.textContent=".svg-skeleton-element-during-loading { display: none !important; }",document.head&&(document.head.appendChild(e),a.cssAdded=!0)}}static get(e){a.ensureCSS();var t,n=a.cache[e];if("string"==typeof n){var i=document.createElement("div");i.innerHTML=n;var s=i.children[0];return i.removeChild(s),$(s)}n&&n.done?t=n:(t=$.ajax({url:a.rootPath+e+".svg",data:{v:a.cacheBreaker},cache:!0,dataType:"text"}),a.cache[e]=t);var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=$(o);return r.addClass("svg-skeleton-element-during-loading"),t.done((function(t){t=t||"",a.cache[e]=t;for(var n=$("<div>"+t+"</div>").children()[0];n.attributes.length;){var i=n.attributes[0];if(n.removeAttributeNode(i),"class"===i.name)r.addClass(i.value);else(i.namespaceURI?o.hasAttributeNS(i.namespaceURI,i.name):o.hasAttribute(i.name))||o.setAttributeNodeNS(i)}for(;n.childNodes.length;){var s=n.childNodes[0];n.removeChild(s),o.appendChild(s)}r.removeClass("svg-skeleton-element-during-loading")})),r}}a.Achievements=a.GetImage(),a.AchievementsSm=a.GetImage(),a.Alert=a.GetImage(),a.AlertCircle=a.GetImage(),a.AlertCircleSm=a.GetImage(),a.AlertSm=a.GetImage(),a.Answer=a.GetImage(),a.Approve=a.GetImage(),a.ArrowDoubleDown=a.GetImage(),a.ArrowDoubleUp=a.GetImage(),a.ArrowDown=a.GetImage(),a.ArrowDownAlt=a.GetImage(),a.ArrowDownLg=a.GetImage(),a.ArrowDownSm=a.GetImage(),a.ArrowLeft=a.GetImage(),a.ArrowLeftAlt=a.GetImage(),a.ArrowLeftSm=a.GetImage(),a.ArrowRight=a.GetImage(),a.ArrowRightAlt=a.GetImage(),a.ArrowRightAltSm=a.GetImage(),a.ArrowRightSm=a.GetImage(),a.ArrowUp=a.GetImage(),a.ArrowUpAlt=a.GetImage(),a.ArrowUpDown=a.GetImage(),a.ArrowUpDownSm=a.GetImage(),a.ArrowUpLg=a.GetImage(),a.ArrowUpSm=a.GetImage(),a.Badge=a.GetImage(),a.Balloon=a.GetImage(),a.Bell=a.GetImage(),a.Bold=a.GetImage(),a.Book=a.GetImage(),a.Briefcase=a.GetImage(),a.BriefcaseSm=a.GetImage(),a.Bullhorn=a.GetImage(),a.BullhornSm=a.GetImage(),a.Calendar=a.GetImage(),a.Chair=a.GetImage(),a.Checkmark=a.GetImage(),a.CheckmarkLg=a.GetImage(),a.CheckmarkSm=a.GetImage(),a.Clap=a.GetImage(),a.Clear=a.GetImage(),a.ClearSm=a.GetImage(),a.Clock=a.GetImage(),a.Code=a.GetImage(),a.Coins=a.GetImage(),a.Columns=a.GetImage(),a.Computer=a.GetImage(),a.Copy=a.GetImage(),a.CreditCard=a.GetImage(),a.Crosshairs=a.GetImage(),a.Currency=a.GetImage(),a.DevTo=a.GetImage(),a.Document=a.GetImage(),a.Download=a.GetImage(),a.DownloadSm=a.GetImage(),a.Dropbox=a.GetImage(),a.EllipsisHorizontal=a.GetImage(),a.EllipsisVertical=a.GetImage(),a.Eye=a.GetImage(),a.EyeSm=a.GetImage(),a.EyeOff=a.GetImage(),a.EyeOffSm=a.GetImage(),a.Eyes=a.GetImage(),a.Facebook=a.GetImage(),a.FaceFrown=a.GetImage(),a.FaceJoy=a.GetImage(),a.FaceMindBlown=a.GetImage(),a.FaceNeutral=a.GetImage(),a.FaceSad=a.GetImage(),a.FaceShocked=a.GetImage(),a.FaceSmile=a.GetImage(),a.Female=a.GetImage(),a.Fire=a.GetImage(),a.FireSm=a.GetImage(),a.Fitness=a.GetImage(),a.Flag=a.GetImage(),a.FlagSm=a.GetImage(),a.Float=a.GetImage(),a.Food=a.GetImage(),a.Gear=a.GetImage(),a.GearSm=a.GetImage(),a.GitHub=a.GetImage(),a.Gitlab=a.GetImage(),a.Globe=a.GetImage(),a.Google=a.GetImage(),a.GoogleDrive=a.GetImage(),a.Grabber=a.GetImage(),a.Graph=a.GetImage(),a.Grid=a.GetImage(),a.Hamburger=a.GetImage(),a.HandNice=a.GetImage(),a.HandPointRight=a.GetImage(),a.HandRock=a.GetImage(),a.HandsTogether=a.GetImage(),a.Header=a.GetImage(),a.Health=a.GetImage(),a.Heart=a.GetImage(),a.Help=a.GetImage(),a.HelpSm=a.GetImage(),a.History=a.GetImage(),a.Home=a.GetImage(),a.HorizontalRule=a.GetImage(),a.Hundred=a.GetImage(),a.Image=a.GetImage(),a.Inbox=a.GetImage(),a.Indent=a.GetImage(),a.Industry=a.GetImage(),a.Info=a.GetImage(),a.InfoSm=a.GetImage(),a.International=a.GetImage(),a.Italic=a.GetImage(),a.Jira=a.GetImage(),a.Key=a.GetImage(),a.Laptop=a.GetImage(),a.LaunchPad=a.GetImage(),a.Lightbulb=a.GetImage(),a.Link=a.GetImage(),a.LinkedIn=a.GetImage(),a.Location=a.GetImage(),a.Lock=a.GetImage(),a.LockSm=a.GetImage(),a.Logo=a.GetImage(),a.LogoEnterprise=a.GetImage(),a.LogoEnterpriseWordmarkSm=a.GetImage(),a.LogoGlyph=a.GetImage(),a.LogoGlyphMd=a.GetImage(),a.LogoGlyphSm=a.GetImage(),a.LogoGlyphXSm=a.GetImage(),a.LogoGlyphXxs=a.GetImage(),a.LogoJobs=a.GetImage(),a.LogoMd=a.GetImage(),a.LogoSE=a.GetImage(),a.LogoSEAlternativeSm=a.GetImage(),a.LogoSEGlyphMd=a.GetImage(),a.LogoSEXxs=a.GetImage(),a.LogoSm=a.GetImage(),a.LogoTalent=a.GetImage(),a.LogoTeams=a.GetImage(),a.LogoTeamsAlt=a.GetImage(),a.LogoTeamsAltMd=a.GetImage(),a.LogoWordmark=a.GetImage(),a.LogoWordmarkMd=a.GetImage(),a.LogoWordmarkSm=a.GetImage(),a.Mail=a.GetImage(),a.MailSm=a.GetImage(),a.Medal=a.GetImage(),a.Merge=a.GetImage(),a.Message=a.GetImage(),a.Microsoft=a.GetImage(),a.Migrate=a.GetImage(),a.Milestone=a.GetImage(),a.Minus=a.GetImage(),a.MinusSm=a.GetImage(),a.Moderator=a.GetImage(),a.ModeratorSm=a.GetImage(),a.Money=a.GetImage(),a.NotInterested=a.GetImage(),a.OpenSource=a.GetImage(),a.OrderedList=a.GetImage(),a.Outdent=a.GetImage(),a.Paperclip=a.GetImage(),a.Peak=a.GetImage(),a.Pencil=a.GetImage(),a.PencilSm=a.GetImage(),a.People=a.GetImage(),a.Person=a.GetImage(),a.Phone=a.GetImage(),a.Play=a.GetImage(),a.Plus=a.GetImage(),a.PlusOne=a.GetImage(),a.PlusSm=a.GetImage(),a.PromoteDemote=a.GetImage(),a.Question=a.GetImage(),a.Quote=a.GetImage(),a.Refresh=a.GetImage(),a.RefreshSm=a.GetImage(),a.Relocation=a.GetImage(),a.Remote=a.GetImage(),a.ReviewQueue=a.GetImage(),a.Rss=a.GetImage(),a.School=a.GetImage(),a.SchoolSm=a.GetImage(),a.Search=a.GetImage(),a.SearchSm=a.GetImage(),a.Share=a.GetImage(),a.ShareSm=a.GetImage(),a.Shield=a.GetImage(),a.ShieldSm=a.GetImage(),a.ShieldXSm=a.GetImage(),a.Skull=a.GetImage(),a.Slack=a.GetImage(),a.SmartPhone=a.GetImage(),a.SOS=a.GetImage(),a.SpeechBubble=a.GetImage(),a.SpeechBubbleError=a.GetImage(),a.SpeechBubbleSm=a.GetImage(),a.StackExchange=a.GetImage(),a.Star=a.GetImage(),a.Stroller=a.GetImage(),a.Subway=a.GetImage(),a.Sync=a.GetImage(),a.Tack=a.GetImage(),a.Tada=a.GetImage(),a.ThumbsDown=a.GetImage(),a.ThumbsUp=a.GetImage(),a.TIL=a.GetImage(),a.Tool=a.GetImage(),a.Trash=a.GetImage(),a.TrashSm=a.GetImage(),a.TrendingDown=a.GetImage(),a.TrendingNone=a.GetImage(),a.TrendingUp=a.GetImage(),a.Twitter=a.GetImage(),a.Undo=a.GetImage(),a.UndoSm=a.GetImage(),a.UnorderedList=a.GetImage(),a.Vacation=a.GetImage(),a.VK=a.GetImage(),a.Wave=a.GetImage(),a.Yandex=a.GetImage(),a.cache=Object.create(null),a.cssAdded=!1},53766:(e,t,n)=>{var a=n(61599),i=n(27672);void 0===i.EventEmitter&&(i.EventEmitter=a),e.exports=a},87218:(e,t,n)=>{var a=n(33184),i=n(27672),s=a.Svg;void 0===i.Svg&&(i.Svg=s),e.exports=a},27672:(e,t,n)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},81954:()=>{var e;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.InlineAuth=(e={using_universal_ui:!1,getSsrc:function(e){var t=$('#login-form input[name="ssrc"]'),n=void 0;return t&&1===t.length&&(n=t.val()),n||(n=e),n},init:function(){var t=[],n=[],a=[],i=[],s=[],o=null,r=null,c=null,l=null;this.setOAuthInfo("","");var u=function(e,t,n){return StackExchange.helpers.showMessage(e,t,n)};$("#openid-buttons").on("click",".js-major-provider",(function(t){var n=$(this).data("provider");n&&(StackExchange.using("gps",(function(){StackExchange.gps.track("signup.start",{openid_provider:n,location:e.getSsrc("signup_inline"),tid:StackExchange.options.user.tid},!0)})),e.signin($(this),t,!0))}));var d=$("#se-login-fields");$(d).on("keyup","input[name=inline-password],input[name=inline-display-name],input[name=inline-email]",(function(e){var t=$(e.target);if(!t.data("entered")){var n="signup."+t.attr("name").replace("display-","")+".entered";t.data("entered",!0),StackExchange.using("gps",(function(){StackExchange.gps.track(n,{},!0)}))}})),$("#se-login-fields").on("click","input[name=submit-button]",(function(){StackExchange.using("gps",(function(){StackExchange.gps.track("signup.se.click",{},!0)}))})),$(".js-terms").on("click","a[name=privacy],a[name=tos]",(function(e){var t="signup."+$(e.target).attr("name")+".click";StackExchange.using("gps",(function(){StackExchange.gps.track(t,{},!0)}))}));var h=null,g=null,p=$("input.js-inline-signup");$('input.js-inline-signup, input[name="password2"]').on("keyup focus paste",(function(){if(0===p.val().length){var e=__tr(["$pStart$Пароль должен содержать как минимум восемь символов, в том числе:$pEnd$ $listStart$ $itemStart$ буквы $itemEnd$ $itemStart$ цифры $itemEnd$ $listEnd$"], {pStart: "<p>",pEnd: "</p>",listStart: "<ul>",listEnd: "</ul>",itemStart: "<li>",itemEnd: "</li>"}, "ru", []);E(n,{id:"pw-requirements",index:-1,attachTo:p,message:e})}else _(n,"pw-requirements"),j(!0);for(var t=null,a=0;a<n.length;a++)if(t){var i=t.index;n[a].index<i&&(t=n[a])}else t=n[a];t?h&&g==t.attachTo?h.find(".message-text").html(t.message):(h&&(h.remove(),g=null),g=t.attachTo,h=u(g,t.message,{position:k(g),css:{width:"250px;",color:"#fff"},cssClass:"_black",closeOthers:!1,dismissable:!1,type:"info"}),t.popup&&t.popup.fadeOutAndRemove()):h&&(h.remove(),h=null,g=null)})),$('input[name="submit-button"]').click((function(){h&&(h.remove(),h=null,g=null)}));var f=$('<div class="caps-lock-warning"></div>').text(__tr(["Включен режим верхнего регистра"], undefined, "ru", [])),m=$("input.js-inline-signup"),b=!1;m.keypress((function(e){var t=String.fromCharCode(e.which);if(/[a-z]/i.test(t)){var n=t==t.toUpperCase();b=n&&!e.shiftKey}var a=!1===document.msCapsLockWarningOff;b&&!a?m.after(f):f.remove()})),m.blur((function(){f.remove()}));var v=!1;$("#login-form input").blur((function(t){""==$(t.target).val()||v||(StackExchange.gps.track("signup.start",{openid_provider:"Stack Exchange",location:e.getSsrc("signup_inline"),tid:StackExchange.options.user.tid},!0),v=!0)})),$("#login-form input[type='text'], #login-form input[type='password'], #login-form input[type='email']").keypress((function(e){if(13===e.which)return $("#submit-button").is(":hidden")?$("#login-form").submit():$("#login-form input[name='submit-button']").click(),e.preventDefault(),!1}));var w=function(e,t){if(e.length>0){if(null!=t){for(var n=!0,a=0;a<e.length;a++)if(e[a].message==t.message){n=!1;break}e[0].changed=n}return e[0]}return null!=t&&t.popup&&t.popup.fadeOutAndRemove(),null},k=function(e){return{my:e.data("error-my")||"left top",at:e.data("error-at")||"right center"}},S=function(e){null!=e&&(e.popup||(e.popup=u(e.attachTo,e.message,{position:k(e.attachTo),css:{width:"120px;",color:"#fff"},closeOthers:!1,dismissable:!1})),e.changed&&(s.push(e.popup),e.popup=u(e.attachTo,e.message,{position:k(e.attachTo),css:{width:"120px;",color:"#fff"},closeOthers:!1,dismissable:!1})))},x=function(){for(var e=0;e<s.length;e++)s[e]&&s[e].fadeOutAndRemove();s=[]},y=function(){S(o),S(r),S(l),S(c),setTimeout(x,200)},_=function(e,t){for(var n="all"===t,a=0;a<e.length&&(e[a].id!=t&&!n||(e[a].popup&&s.push(e[a].popup),e.splice(a,1),n));a++);};this.removeAllErrors=function(){_(t,"all"),_(n,"all"),_(a,"all"),_(i,"all"),StackExchange.helpers.removeMessages()};var E=StackExchange.Auth.addOrUpdateError,j=function(e){var t=$("input[name = 'inline-password']");0!==$.trim(t.val()).length||e?_(n,"pw-empty"):E(n,{id:"pw-empty",index:0,attachTo:t,message:__tr(["Поле ввода пароля не может быть пустым."], undefined, "ru", [])}),StackExchange.Auth.passwordStrengthValidation(t,n,_)},C=function(){var e;return j(),function(){var e=$.trim($("input[name='inline-email']").val()).toUpperCase(),t=$("input[name='inline-display-name']");e===$.trim(t.val()).toUpperCase()&&""!=e?E(a,{id:"nm",index:0,attachTo:t,message:__tr(["Имя и адрес электронной почты должны отличаться. Если вы не хотите вводить имя, просто оставьте поле пустым."], undefined, "ru", []),faileType:"name_email_same"}):_(a,"nm")}(),$("#no-captcha-here iframe").length>0&&(grecaptcha.getResponse().length>0?_(i,"cp"):E(i,{id:"cp",index:0,attachTo:$("#no-captcha-here"),message:__tr(["Необходимо пройти CAPTCHA."], undefined, "ru", [])})),e=$("input[name='inline-email']"),0===$.trim(e.val()).length?E(t,{id:"em-empty",index:0,attachTo:e,message:__tr(["Поле ввода почты не может быть пустым."], undefined, "ru", [])}):_(t,"em-empty"),o=w(t,o),r=w(n,r),c=w(a,c),l=w(i,l),null==o&&null==r&&null==c&&null==l},A=!0;$("#login-form input[name='submit-button']").click((function(e){var n={isSignup:!0};$("#login-form input").each((function(e,t){var a=$(t).attr("name");a&&(a=a.replace(/(\W|_)/gi,""),n[a]=$(t).val())})),$.ajax({url:"/users/login-or-signup/validation/track",data:n,type:"POST",complete:function(){var e=C();A&&($("#login-form input").blur((function(){C();var e=$("#login-form input[name='inline-email']"),n=$.trim(e.val());_(t,"em-ajax"),$.ajax({type:"POST",url:"/users/signup/email/validate",data:{email:n,fkey:StackExchange.options.user.fkey},success:function(n){n.IsValid?o=null:(E(t,{id:"em-ajax",index:1,attachTo:e,message:n.ErrorMessage}),o=w(t,o))},complete:function(){y()}})})),A=!1),e?$("#login-form").submit():y()}})}))},removeAllErrors:function(){},signin:function(t,n,a){var i,s,o=t.data?(s={name:(i=t).data("provider")},i.data("oauthserver")&&(s.oauth_server=i.data("oauthserver")),i.data("oauthversion")&&(s.oauth_version=i.attr("data-oauthversion")),s):t;o&&(function(t,n){var a="signup_inline";n||StackExchange.using("gps",(function(){StackExchange.gps.track("signup.start",{openid_provider:t,location:e.getSsrc(a),tid:StackExchange.options.user.tid},!0)})),t&&(StackExchange.using("gps",(function(){StackExchange.gps.track("signup.openid.click",{openid_provider:t,location:a},!0)})),StackExchange.using("gps",(function(){StackExchange.gps.track("openid.click",{openid_provider:t,location:a},!0)})))}(o.name.replace(/_/g," "),a),"2.0"===o.oauth_version&&this.setOAuthInfo(o.oauth_version,o.oauth_server),$("#login-form").submit())},setOAuthInfo:function(e,t){$("#oauth_version").val(e),$("#oauth_server").val(t)}},{init:function(){e.init()}})},59441:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},Stacks.addController("reactions",{tryToggle:function(e){"keypress"!==e.type||32!==e.keyCode&&13!==e.keyCode?"click"===e.type&&(e.currentTarget.blur(),e.preventDefault(),this.toggle(e)):(e.preventDefault(),this.toggle(e))},toggle:function(e){var t=$(e.currentTarget),n=t.closest(".js-voting-container"),a=n.data("post-id"),i=t.closest(".answer").length;n.is(":working")||(n.working(!0),StackExchange.helpers.removeMessages(),StackExchange.using("gps",(function(){StackExchange.gps.track("react_popup.show",{type:i?2:1})})),$.ajax({type:"POST",url:"/posts/popup/anon-react/{postId}?voteTypeId={voteTypeId}".formatUnicorn({postId:a,voteTypeId:19}),data:{fkey:StackExchange.options.user.fkey},dataType:"html",success:function(e){StackExchange.openid.showLoginModal(e,{returnElements:t})},complete:function(){n.working(!1)}}))}})},31899:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.anonymous={}},86241:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.klass=function(e){var t=(e=e||this).klass,n=/.*/,a="prototype";function i(e){return c.call(s(e)?e:function(){},e,1)}function s(e){return"function"==typeof e}function o(e,t,n){return function(){var i=this.supr;this.supr=n[a][e];var s={}.fabricatedUndefined,o=s;try{o=t.apply(this,arguments)}finally{this.supr=i}return o}}function r(e,t,i){for(var r in t)t.hasOwnProperty(r)&&(e[r]=s(t[r])&&s(i[a][r])&&n.test(t[r])?o(r,t[r],i):t[r])}function c(e,t){function n(){}n[a]=this[a];var i=this,o=new n,l=s(e),u=l?e:this,d=l?{}:e;function h(){this.initialize?this.initialize.apply(this,arguments):(t||l&&i.apply(this,arguments),u.apply(this,arguments))}return h.methods=function(e){return r(o,e,i),h[a]=o,this},h.methods.call(h,d).prototype.constructor=h,h.extend=c,h[a].implement=h.statics=function(e,t){var n;return r(this,e="string"==typeof e?((n={})[e]=t,n):e,i),this},h}return i.noConflict=function(){return e.klass=t,this},i}(window),StackExchange.topbar=function(){var e=klass({name:"",url:"",cssClass:"",button:null,$dialog:null,$loadingPlaceholder:null,$preloadedDialog:null,$parent:null,alignment:null,hasRead:!1}).methods({isLoading:function(){return null!=this.$loadingPlaceholder},isLoaded:function(){return null!=this.$dialog},isVisible:function(){var e=this.$dialog||this.$loadingPlaceholder;return null!=e&&e.is(":visible")},toggle:function(e,t){if("boolean"!=typeof e)throw new Error("showOrHide is a required parameter");if(!e){if(this.isLoading())return void this.showOrHide(!1);if(!this.isLoaded())return}if(this.isLoaded()||this.isLoading()?(this.showOrHide(e),e||t||!this.hasRead||this.markAsRead()):this.$preloadedDialog?this.loadChildContent():this.loadDialog(),e){for(var n=0;n<E.length;n++)this.button!=E[n]&&E[n].toggle(!1,t);$(".js-top-search-popover").removeClass("is-visible")}},showOrHide:function(e){var t=this.$dialog||this.$loadingPlaceholder||$(),n=this.button.$button;if(e){var a=n.closest("li");this.$parent||a.length>0&&(this.$parent=$('<li role="presentation" />').insertAfter(a)),this.$parent?this.$parent.append(t):t.insertAfter(this.button.$button),this._bound_pdub||(this._bound_pdub=this.positionDialogUnderButton.bind(this)),this.positionDialogUnderButton(),StackExchange.responsive&&StackExchange.responsive.addBreakpointListener(this._bound_pdub)}else StackExchange.responsive&&this._bound_pdub&&StackExchange.responsive.removeBreakpointListener(this._bound_pdub);t.toggle(e),e&&this.isLoaded()&&(this.hasRead=!0)},loadChildContent:function(){var e=this.$preloadedDialog.find(".child-content");if(this.$dialog=this.$preloadedDialog,this.showOrHide(!0),this.url){$("<div>",{class:"child-content-loading"}).addSpinner().appendTo(e);var t=this;this.fetchUrl().done((function(n){e.html(n),t.afterLoad()}))}},loadDialog:function(){if(!this.isLoading()){this.$loadingPlaceholder=this.getLoadingPlaceholder(),this.showOrHide(!0);var e=this;this.fetchUrl().done((function(t){e.$dialog=$(t),e.afterLoad();var n=e.$loadingPlaceholder.is(":visible");e.showOrHide(n)})).always((function(){e.$loadingPlaceholder.remove(),e.$loadingPlaceholder=null}))}},afterLoad:function(){this.$dialog.find(".js-close-button").click((function(){StackExchange.topbar.hideAll()})),StackExchange.gps.bindTrackClicks(this.$dialog)},getLoadingPlaceholder:function(){var e=$("<div/>").append(StackExchange.helpers.getSpinnerImg()).html(),t=this.cssClass+(StackExchange.options.user.isAnonymousNetworkWide?" anon":"");return $(['<div class="topbar-dialog ',t,' dno">','<div class="header">',e,"</div>",'<div class="modal-content"/>',"</div>"].join(""))},positionDialogUnderButton:function(){var e=this.alignment||"right",t=this.button.$button.outerHeight(),n=this.$dialog||this.$loadingPlaceholder,a=n.parent();for(["top","left","right","max-width"].forEach((function(e){n[0].style.removeProperty(e)}));a.not("body").length&&"static"===a.css("position");)a=a.parent();a=a.length?a:$("body");var i,s=this.button.$button.offset().left-a.offset().left;"right"===e&&(s=a.outerWidth()-s-this.button.$button.outerWidth(),i=a.offset().left+a.outerWidth()-s);var o={top:t};StackExchange.responsive&&"sm"===StackExchange.responsive.currentRange()||(o[e]=s,i&&(o.maxWidth=i)),(this.$dialog||this.$loadingPlaceholder).css(o)},fetchUrl:function(){return S("fetching "+this.url),$.ajax({type:"GET",url:this.url,dataType:"html"})},markAsRead:function(){this.button.markAsRead(),this.isLoaded()&&this.$dialog.find(".unread-item").removeClass("unread-item")},handleRealtimeMessage:function(e){this.clearLoadedDialog()},clearLoadedDialog:function(){this.isLoaded()&&(this.$dialog.remove(),this.$dialog=null,this.hasRead=!1)},hasFocus:function(){return this.contains(document.activeElement)},contains:function(e){var t=this.$dialog||this.$loadingPlaceholder;return t&&t.length&&e&&$.contains(t.get(0),e)}}),t=klass({name:"",selector:"",dialog:null,$button:null,onClass:"",unreadCountPrefix:"",queuedUnreadCount:0,showsOnMouseOver:!1,pendingUnread:{}}).methods({initialize:function(){this.dialog.name=name,this.dialog.button=this,j.push(this.dialog);var e=this;this.$button=$(this.selector),this.$button.click((function(){return e.toggle(),!1})),this.showsOnMouseOver&&this.$button.mouseover((function(t){e.showOnMouseOver()})),this.onClass="topbar-icon-on"+(this.onClass?" ":"")+this.onClass},toggle:function(e,t){e="boolean"==typeof e?e:!this.$button.hasClass(this.onClass),this.$button.toggleClass(this.onClass,e),this.$button.attr("aria-expanded",e),this.dialog.toggle(e,t),!e&&this.dialog.hasFocus()&&this.$button.focus()},showOnMouseOver:function(){for(var e=!1,t=0;t<E.length;t++){var n=E[t];if(n!=this&&n.showsOnMouseOver&&n.isOn()){e=!0;break}}e&&this.toggle(!0,!0)},isOn:function(){return this.$button.hasClass(this.onClass)},markAsRead:function(){this.setUnread($.extend({count:0,litUp:!1},this.pendingUnread))},setUnread:function(e){this.isOn()?$.extend(this.pendingUnread,e):(this.pendingUnread={},this.applyUnreadCount(e.count,e.litUp),(e.count>0||e.litUp)&&this.dialog.clearLoadedDialog())},applyUnreadCount:function(e,t){var n=this.$button,a=n.find(".unread-count, .js-unread-count"),i=n.data("unread-class");void 0!==t&&i&&n.toggleClass(i,t).data("lit-up",t),void 0!==e&&(n.data("unread-count",e),e>0?a.text(this.unreadCountPrefix+e).fadeIn().removeClass("d-none"):a.fadeOut());var s=this.getButtonLabelAndTitle(n.data("unread-count")||0,!!n.data("lit-up"));s&&(n.attr("aria-label",s.label),n.attr("title",s.title))},handleRealtimeMessage:function(e){},getButtonLabelAndTitle:function(e,t){return null}}),n=e.extend({url:"/topbar/site-switcher/site-list",cssClass:"siteSwitcher-dialog",$searchItems:null,$pinnedSiteSearchItems:null,isPreloaded:!0,$preloadedDialog:$(".siteSwitcher-dialog")}).methods({afterLoad:function(){this.$dialog.find(".js-site-filter-txt").typeWatch({highlight:!1,wait:250,captureLength:-1,callback:$.proxy(this.filterSites,this)}),this.$searchItems=this.$dialog.find(".js-other-sites li").clone().map((function(){return{title:$(".site-icon",this).attr("title").toLowerCase(),description:$(".site-desc",this).text().toLowerCase(),hostname:$("a",this).first().attr("href"),li:this}}));var e=this.$dialog;this.$dialog.find(".js-site-filter-txt").focus((function(){var t=e.offset().top+e.height(),n=e.find(".other-sites li:nth-child(2)"),a=n.offset().top+n.height();a>t&&e.animate({scrollTop:e.scrollTop()+a-t},750)})),StackExchange.options.user.isAnonymous&&!StackExchange.options.user.isAnonymousOnThisSite||!$(".pinned-site-editor-container").length||($(".js-found-sites").hide(),this.$dialog.find("#js-site-search-txt").typeWatch({highlight:!1,wait:100,captureLength:-1,callback:$.proxy(this.findSitesToPin,this)}),this.$dialog.find("#edit-pinned-sites").click($.proxy(this.editPinnedSites,this)),this.$dialog.find("#cancel-pinned-sites").click({forceListRefresh:$("#save-pinned-sites-btn").is(":enabled")},this.cancelSiteListEdits),this.$dialog.find("#pin-site-btn").click($.proxy(this.pinSite,this)),this.$dialog.on("click",".js-remove-pinned-site-link",(function(){return $(this).parent().remove(),$("#save-pinned-sites-btn").enable(),$(".js-reset-pinned-sites").show(),!1})),this.$dialog.find("#save-pinned-sites-btn").click($.proxy(this.savePinnedSites,this)),this.$dialog.find(".js-reset-pinned-sites").click($.proxy(this.resetPinnedSites,this))),this.supr()},showOrHide:function(e){this.supr(e)},pinSite:function(){$("#pin-site-btn").disable();var e=$("#js-site-search-txt").val(),t=$.grep(this.$pinnedSiteSearchItems,(function(t,n){return t.sitename===e}));if(t.length){var n=t[0];if($(".pinned-site-link").map((function(e,t){return $(t).data("id")})).toArray().indexOf(n.siteid)>-1)$("#pin-site-btn").enable();else{var a=this;$.ajax({type:"GET",url:"/topbar/site-switcher/pin-site",data:{siteId:n.siteid},dataType:"html"}).done((function(e){var t=$(e);t.hide(),$(".pinned-site-list").append(t),t.fadeIn("slow"),$("#js-site-search-txt").val(""),$("#save-pinned-sites-btn").enable(),a.toggleSiteListResetLink(!0)})).fail((function(){$("#pin-site-btn").parent().showErrorMessage(__tr(["Что-то пошло не так, пожалуйста, повторите попытку"], undefined, "ru", [])),$("#pin-site-btn").enable()}))}}else $("#pin-site-btn").enable()},savePinnedSites:function(){var e=$(".pinned-site-list li .pinned-site-link").map((function(e,t){return $(t).data("id")})).toArray(),t=!$(".js-reset-pinned-sites").is(":visible")||!e.length;this.toggleSiteListResetLink(!t);var n=$(".js-reset-pinned-sites").siblings("input[name=fkey]").val();return $.ajax({type:"POST",url:"/topbar/site-switcher/save-pinned-sites",data:{siteIds:t?[]:e,fkey:n||StackExchange.options.user.fkey},dataType:"html",traditional:!0}).done($.proxy((function(e){$(".my-sites").html(e),this.cancelSiteListEdits(!1),$(".pinned-site-list").data("custom-list",!t),StackExchange.using("gps",(function(){StackExchange.gps.track("site_switcher.edit",{})}))}),this)).fail((function(){$("#save-pinned-sites-btn").parent().showErrorMessage(__tr(["Что-то пошло не так, пожалуйста, повторите попытку"], undefined, "ru", []))})),!1},resetPinnedSites:function(){var e=this;return $.ajax({type:"GET",url:"/topbar/site-switcher/default-active-sites",dataType:"html"}).done((function(t){$(".pinned-site-list").html(t),$("#save-pinned-sites-btn").enable(),e.toggleSiteListResetLink(!1)})).error((function(){$(".js-reset-pinned-sites").parent().showErrorMessage(__tr(["Что-то пошло не так, пожалуйста, повторите попытку"], undefined, "ru", []))})),!1},doSearch:function(e,t,n){var a;t=t.toLowerCase();var i=[];return $.each(e,(function(e,n){var a={index:e,li:n.li,item:n},s=n.title.indexOf(t);n.title==t?a.priority=1:0==s?a.priority=2:s>-1?a.priority=3:n.description.indexOf(t)>-1?a.priority=4:n.hostname.indexOf(t)>-1&&(a.priority=5),a.priority&&i.push(a)})),a=i.sort((function(e,t){return e.priority-t.priority||e.index-t.index})),n&&StackExchange.using("gps",(function(){StackExchange.gps.track("sitesearch.submit",{term:t,numresults:i.length},!1)})),a},_findSitesToPin:function(e){var t=$(".js-found-sites"),n=this.$pinnedSiteSearchItems;if(t.empty(),""===e)return t.hide(),void $("#pin-site-btn").disable();if((n=this.doSearch(n,e,!1)).length){t.show(),$("#pin-site-btn").enable();var a=$(".pinned-site-link").map((function(e,t){return $(t).data("id")})).toArray();$.each(n,(function(e,n){var i=$('<li class="pinned-site-candidate">'+n.item.sitename+"</li>");a.indexOf(n.item.siteid)>-1?i.addClass("already-pinned-site"):i.click((function(){var e=$(this).text();return $("#js-site-search-txt").val(e),$(".js-found-sites").hide(),!1})),i.appendTo(t)}))}},findSitesToPin:function(e){if(this.$pinnedSiteSearchItems)this._findSitesToPin(e);else{var t=this;$.ajax({type:"GET",url:"/topbar/site-switcher/all-pinnable-sites",dataType:"json"}).done((function(n){t.$pinnedSiteSearchItems=n,t._findSitesToPin(e)}))}},filterSites:function(e){var t=$(".js-other-sites"),n=this.$searchItems;t.empty(),""!=e&&(n=this.doSearch(n,e,!0)),t.append(n.map((function(e){return this&&this.li||e.li})))},editPinnedSites:function(){$(".siteSwitcher-dialog .header").not("#your-communities-header").css("opacity",.2),$(".siteSwitcher-dialog .modal-content").not("#your-communities-section").css("opacity",.2),$(".my-sites").hide(),$(".pinned-site-editor-container").show(),$("#edit-pinned-sites").hide(),$("#cancel-pinned-sites").show();var e=$(".pinned-site-list");if(""===e.html().trim()){var t=$("<div/>").append(StackExchange.helpers.getSpinnerImg()).html();e.append('<li style="text-align:center;">'+t+"</li>"),$.ajax({type:"GET",url:"/topbar/site-switcher/current-pinned-sites",dataType:"html"}).done((function(t){e.html(t)})).fail((function(){e.showErrorMessage(__tr(["Что-то пошло не так, пожалуйста, повторите попытку"], undefined, "ru", []))})).always((function(){e.find(".ajax-loader").remove()}))}this.toggleSiteListResetLink("true"===e.data("custom-list").toString().toLowerCase());var n=$(".sortable"),a=this;return n.data("isSortable")||StackExchange.loadJqueryUi().done((function(){n.sortable({axis:"y",update:function(){$("#save-pinned-sites-btn").enable(),a.toggleSiteListResetLink(!0)}}).disableSelection().data("isSortable",!0)})),!1},toggleSiteListResetLink:function(e){$(".js-reset-pinned-sites").toggle(e)},cancelSiteListEdits:function(e){return $(".header").not("#your-communities-header").css("opacity",1),$(".modal-content").not("#your-communities-section").css("opacity",1),$(".my-sites").show(),$("#edit-pinned-sites").show(),$(".pinned-site-editor-container").hide(),$("#cancel-pinned-sites").hide(),$("#save-pinned-sites-btn").disable(),e&&($(".pinned-site-list").empty(),$(".js-found-sites").hide(),$("#js-site-search-txt").val(""),$("#pin-site-btn").disable()),!1}}),a=t.extend({name:"SiteSwitcher",selector:".js-site-switcher-button",dialog:new n,showsOnMouseOver:!1,onClass:"icon-site-switcher-on"}),i=e.extend({cssClass:"feature-notice-dialog",alignment:"left"}).methods({loadDialog:function(){this.$dialog=$(".js-feature-notice-dialog");var e=this.button,t=e.$button;this.$dialog.find(".js-close-button").click((function(){return e.mark(4),t.hide(),e.toggle(!1),!1})),this.$dialog.find(".js-cta-button").click((function(){return e.didClickCTA=!0,e.mark(2),!0})),this.showOrHide(!0)}});function s(e,t){var n=e.data("cookie");if(n){var a=t($.cookie(n));a&&$.cookie(n,a,{expires:new Date(e.data("expire-date")),path:"/"})}}var o=t.extend({name:"FeatureNotice",selector:".-feature-notice",dialog:new i}).methods({initialize:function(){t.prototype.initialize.apply(this,arguments);var e=this.$button;s(e,(function(e){return e?"!"==e.substring(0,1)?"!"+(1+parseInt(e.substring(1))):null:"!1"})),e.data("autopopup")&&this.toggle(!0,!1,!0)},mark:function(e){s(this.$button,(function(t){if(t){var n=t.split(";");if(2==n.length&&!isNaN(n[0])&&!isNaN(n[1]))return(n[0]|e)+";"+n[1]}return e+";"+Date.now()}))},markAsRead:function(){this.didClickCTA&&t.prototype.markAsRead.apply(this,arguments)},toggle:function(e,n,a){e="boolean"==typeof e?e:!this.$button.hasClass(this.onClass),a=!!a,t.prototype.toggle.apply(this,arguments);var i=this.$button;this.dialog.$dialog;e&&(this.mark(1),a||this.mark(8),i.hasClass("js-sample")&&StackExchange.using("gps",(function(){StackExchange.gps.track("new_feature.show",{campaign:i.data("campaign"),location:i.data("location"),auto_popup:a})})))}}),r=e.extend({url:"/topbar/inbox",cssClass:"inbox-dialog"}),c=t.extend({name:"Inbox",selector:".js-inbox-button",dialog:new r,showsOnMouseOver:!1}).methods({handleRealtimeMessage:function(e){this.setUnread({count:e.UnreadInboxCount})},getButtonLabelAndTitle:function(e){var t,n;return e>0?(t=__tr(["Inbox ($__count$ unread messages)","Inbox ($__count$ unread messages)","Inbox ($__count$ unread messages)"], {__count: e}, "ru", ["__count"]),n=__tr(["У вас есть непрочитанные входящие сообщения"], undefined, "ru", [])):(t=__tr(["Входящие сообщения"], undefined, "ru", []),n=__tr(["Последние входящие сообщения"], undefined, "ru", [])),{label:t,title:n}}}),l=e.extend({url:(StackExchange.options.site.routePrefix||"")+"/topbar/achievements",cssClass:"achievements-dialog"}).methods({afterLoad:function(){this.alignRep(),this.bindDateGroupToggles(),this.displayUtcTime(),this.bindGpsTracker(),this.supr()},alignRep:function(){var e=this.$dialog.find(".js-items .js-faux-column"),t=0;e.filter(".js-rep-change").each((function(){var e=$.trim($(this).text()).length;e>t&&(t=e)})),t>0&&e.width(6*(t+1))},bindDateGroupToggles:function(){this.$dialog.find(".js-date-group-toggle").click((function(){var e=$(this),t=e.closest(".js-date-group"),n=t.find(".js-items"),a=t.find(".rep-site-container");e.find(".date-group-toggle").toggleClass("toggle-hidden"),n.add(a).fadeToggle("fast")})),this.$dialog.find(".rep-site-container").on("click",(function(e){e.stopImmediatePropagation()}))},displayUtcTime:function(){var e=this.$dialog,t=function(){var t=new Date;t.setTime(t.getTime()+1e3*StackExchange.options.serverTimeOffsetSec);var n=t.getUTCHours(),a=t.getUTCMinutes();n<10&&(n="0"+n),a<10&&(a="0"+a),e.find(".js-utc-time").text(n+":"+a)};t(),setInterval(t,6e4)},bindGpsTracker:function(){var e=$("#js-gps-container.js-empty-achiev");e.find("a:first").addClass("js-gps-track").data("gps-track","achievements_popup.click({ item_type:6 })"),e.find("a:last").addClass("js-gps-track").data("gps-track","achievements_popup.click({ item_type:7 })"),StackExchange.gps.bindTrackClicks(e)}}),u=t.extend({name:"Achievements",selector:".js-achievements-button",dialog:new l,unreadCountPrefix:"+",showsOnMouseOver:!1}).methods({handleRealtimeMessage:function(e){var t={count:e.UnreadRepCount};void 0!==e.UnreadNonRepCount&&(t.litUp=e.UnreadNonRepCount>0),this.setUnread(t)},getButtonLabelAndTitle:function(e,t){var n,a;return e>0?(n=__tr(["Achievements ($__count$ new reputation)","Achievements ($__count$ new reputation)","Achievements ($__count$ new reputation)"], {__count: e}, "ru", ["__count"]),a=__tr(["У вас есть новые изменения репутации"], undefined, "ru", [])):t?(n=__tr(["Achievements (unread)"], undefined, "ru", []),a=__tr(["У вас есть новые достижения"], undefined, "ru", [])):(n=__tr(["Achievements"], undefined, "ru", []),a=__tr(["Последние достижения: репутация, знаки и привилегии"], undefined, "ru", [])),{label:n,title:a}}}),d=e.extend({cssClass:"help-dialog"}).methods({loadDialog:function(){this.$dialog=$(".js-help-dialog"),this.showOrHide(!0)}}),h=t.extend({name:"Help",selector:".js-help-button",dialog:new d}),g=e.extend({cssClass:"network-logo-dialog",alignment:"left"}).methods({loadDialog:function(){this.$dialog=$(".js-network-logo-dialog"),this.showOrHide(!0);var e=this.button;this.$dialog.find(".js-close-button").click((function(){return e.toggle(!1),!1}))}}),p=t.extend({name:"NetworkLogo",selector:".js-network-logo",dialog:new g}),f=e.extend({url:"/topbar/review",cssClass:"review-dialog"}),m=t.extend({name:"Review",selector:".js-review-button",dialog:new f}),b=e.extend({url:"/topbar/mod-inbox",cssClass:"modInbox-dialog"}).methods({}),v=t.extend({name:"ModInbox",selector:".js-mod-inbox-button",dialog:new b}),w=e.extend({cssClass:"js-leftnav-dialog",alignment:"left"}).methods({loadDialog:function(){this.$dialog=$(".js-leftnav-dialog"),this.showOrHide(!0);var e=this;StackExchange.responsive&&StackExchange.responsive.addBreakpointListener((function(t,n){$("html").hasClass("html__unpinned-leftnav")||"sm"===n&&e.button.toggle(!1)}))}}),k=t.extend({name:"LeftNav",selector:".js-left-sidebar-toggle",dialog:new w});function S(e){StackExchange.options.enableLogging&&console.log("topbar: "+e)}function x(){for(var e=0;e<E.length;e++)E[e].toggle(!1)}function y(e,t){var n=this;this.settings=$.extend({},{enableHints:!0,enablePrizm:!0,isTopbarAware:!0,onChoice:null,searchUrl:"/search/ac?q=",transformResultsHtml:null},t),this.resultsCache={},this.searchHintsLoaded=!1,this.refreshResultsOnNextShow=!1,e.on("s-popover:show",(function(){n.refreshResultsOnNextShow&&(n.suggest.call(n),n.refreshResultsOnNextShow=!1)}));var a=$("#"+e.attr("aria-controls")),i=a.find(".js-ac-results");if(this.$searchPopover=a,this.$searchBox=e,this.$resultsDiv=i,this.$screenReaderInfo=a.find(".js-screen-reader-info"),this.$loadingIndicator=a.find(".js-spinner"),this.$searchHintsContainer=a.find(".js-search-hints"),this.settings.enableHints?e.on("s-popover:show",this.fetchSearchHints.bind(this)):this.searchHintsLoaded=!0,this.settings.isTopbarAware&&($(".js-products-menu").on("s-popover:show",this.hidePopover.bind(this)),e.on("s-popover:show",StackExchange.topbar.hideAll)),e.hasClass("js-search-autocomplete")){var s=StackExchange.helpers.DelayedReaction(this.suggest.bind(this),500,{sliding:!0}),o=/Trident/.test(navigator.userAgent)?"textinput":"input";e.on(o,this.onInput.bind(this)),e.on(o,s.trigger),e.on("keydown",this.searchBoxOnKeyDown.bind(this)),a.on("keydown",this.searchPopoverOnKeyDown.bind(this)),i.on("click",".js-ac-result",this.choose.bind(this)),this.settings.isTopbarAware&&$(".js-top-bar").focusin(this.hideWhenFocusLost.bind(this))}}function _(){var e=$(".js-searchbar"),t=$(".js-searchbar-trigger"),n=$(".js-search-field");t.on("click",(function(a){var i;a.preventDefault(),t.toggleClass("topbar-icon-on",i),e.toggleClass("searchbar__open",i),StackExchange.helpers.DelayedReaction((function(){n.focus()}),0).trigger()}))}y.prototype={query:function(){return this.$searchBox.val().trim()},hasQuery:function(){return!!this.query()},fetchSearchHints:function(){var e=this;this.searchHintsLoaded||$.ajax({type:"GET",url:"/search/hints"}).success((function(t){e.$searchHintsContainer.append(t),e.searchHintsLoaded=!0})).fail((function(e,t,n){StackExchange.debug.log("Autocomplete Error: "+n.toString())}))},hasResults:function(){return this.$resultsDiv[0].childElementCount>0},hideResults:function(){this.showResults("")},hidePopover:function(){this.$searchPopover.removeClass("is-visible")},hideWhenFocusLost:function(e){$(e.target).is(this.$searchBox)||0!==$(e.target).parents(".js-top-search-popover").length||this.hidePopover()},onInput:function(){var e=this.hasQuery();this.toggleSpinner(e),e||this.settings.enableHints||this.hidePopover()},showResults:function(e){var t=0===$.trim(e).length;this.$searchHintsContainer.find(".js-search-hints-text").toggleClass("d-none",!t),this.toggleSpinner(!1);var n=(this.settings.transformResultsHtml||function(e){return $(e)})(e);this.$resultsDiv.empty().append(n).toggleClass("d-none",t);var a=this.$resultsDiv.find(".js-ac-result").length;this.$screenReaderInfo.text(0===a?"No results":__tr(["Найдено результатов: $__results$","Найдено результатов: $__results$","Найдено результатов: $__results$"], {__results: a}, "ru", ["__results"]))},toggleSpinner:function(e){this.$loadingIndicator.toggleClass("d-none",!e)},suggest:function(){var e=this,t=e.query();if(e.hasQuery()){var n=e.resultsCache[t];if(void 0!==n)e.showResults(n);else{var a=new URL(this.settings.searchUrl+encodeURIComponent(t),location.href);$.get(a.href).done((function(n){e.resultsCache[t]=n,e.showResults(n)})).fail((function(t,n,a){StackExchange.debug.log("Autocomplete Error: "+a.toString()),e.toggleSpinner(!1)}))}}else e.hideResults()},selected:function(e){if(0===arguments.length)return this.$resultsDiv.find(".js-ac-result:focus");if(e){if(!(e=$(e)).hasClass("js-ac-result"))return;e.siblings().find(".js-ac-enter-hint").addClass("d-none"),e.siblings().blur(),e.focus(),e.find(".js-ac-enter-hint").toggleClass("d-none")}else this.$resultsDiv.children().blur()},selectNext:function(){if(this.hasResults()){var e=this.selected(),t=e.next(".js-ac-result");0!==e.length?t.length>0&&(this.selected(t),t[0].scrollIntoView({behavior:"smooth",block:"nearest"})):this.$resultsDiv.children(".js-ac-result").first().focus().find(".js-ac-enter-hint").toggleClass("d-none")}},selectPrev:function(){if(this.hasResults()){var e=this.selected().prev(".js-ac-result");e.length>0?(this.selected(e),e[0].scrollIntoView({behavior:"smooth",block:"nearest"})):(this.$searchBox.focus(),this.$resultsDiv.children(".js-ac-result").first().find(".js-ac-enter-hint").addClass("d-none"))}},searchBoxOnKeyDown:function(e){switch(e.key){case"ArrowDown":this.hasResults()&&this.selectNext(),e.preventDefault();break;case"Escape":this.hidePopover()}},searchPopoverOnKeyDown:function(e){switch(e.key){case"ArrowDown":this.hasResults()&&this.selectNext(),e.preventDefault();break;case"ArrowUp":this.hasResults()&&this.selectPrev(),e.preventDefault();break;case"Escape":this.hidePopover(),this.$searchBox.focus()}},choose:function(e){var t=$(e.target).closest(".js-ac-result"),n=this.$resultsDiv.find(".js-ac-result").index(t);if(this.settings.enablePrizm&&StackExchange.using("gps",(function(){StackExchange.gps.track("sitesearch.autocomplete.click",{completion_index:n})})),this.settings.onChoice)return e.preventDefault(),this.settings.onChoice(t),!1}};var E=[],j=[];return{init:function(e){e=e||{},window.devicePixelRatio>=1.5&&$(".js-avatar-me").attr("src",(function(e,t){return t.replace("?s=24","?s=48")})),E.push(new a),E.push(new p),$(".js-left-sidebar-toggle").length&&E.push(new k),StackExchange.settings.userMessaging&&StackExchange.settings.userMessaging.showNewFeatureNotice&&E.push(new o),E.push(new c),E.push(new u),E.push(new h),E.push(new m),StackExchange.options.user.isModerator&&E.push(new v),$(document).click((function(e){(function(e){for(var t=0;t<E.length;t++){var n=E[t];if((n.$button||$()).get(0)===e)return!0;if(n.dialog&&n.dialog.contains(e))return!0}return!1})(e.target)||x()}));var t,n,i,s=document.body.style;if("justifyContent"in s||"WebkitJustifyContent"in s||$(".top-bar *:visible").css({display:"inline-block","white-space":"nowrap","vertical-align":"middle"}).not(".-logo, .-logo *, svg, .-badges *").css("width","auto"),t=$(".js-search-field"),$(".js-search-channel-selector").change((function(){var e=$(this).find("option:selected");if(e&&1===e.length){var t=e.data("url");t&&$("#search").attr("action",t);var n=e.data("search-on");n&&$(".js-search-on").val(n)}})).trigger("change"),new y(t),_(),function(){var e=!1,t=(navigator.userAgent||"").match(/\bEdge\/(\d+)/);if(t&&parseInt(t[1],10)<17&&(e=!0),e||!window.CSS||!CSS.supports||!CSS.supports("(position: sticky) or (position: -webkit-sticky)")){var n=$(".js-sticky-leftnav");if(n.length){e&&n.addClass("left-sidebar__fake-sticky");var a=$(".js-pinned-left-sidebar"),i=parseInt(a.css("padding-top"),10),s=$(window);s.on("scroll",o),StackExchange.responsive.addBreakpointListener(o),o()}}function o(){if(a.is(":visible")){var e=a.offset().top-s.scrollTop()+StackExchange.scrollPadding.getPaddingTop(),t=Math.max(StackExchange.scrollPadding.getPaddingTopMinimal(),e)+i,o=n.height(),r=t+o-e-a.height();t-=Math.max(0,r),n.css("top",t),a.css("min-height",o+i)}}}(),n=$("#js-gdpr-consent-banner"),(i=n.find(".js-notice-close")).click((function(){i.prop("disabled",!0),$.ajax({method:"POST",url:"/accounts/accept-gdpr-consent-banner",data:{fkey:StackExchange.options.user.fkey},dataType:"json",success:function(e){e&&n.remove()},complete:function(){i.prop("disabled",!1)}})})),$(".js-products-menu").click((function(){return!1})),$("#popover-review-queue").length){var r=$(".js-review-button");r.on("s-popover:hide",(function(e){var t=e.originalEvent.detail.dispatcher;t&&0===$(t).closest(".js-top-bar").length&&e.preventDefault()})),r.attr({"data-controller":"s-popover","aria-controls":"popover-review-queue"}),StackExchange.helpers.toggleStacksPopover(r,!0),$(".js-review-queue-popover-learn-more, .js-review-queue-popover-close-button, .js-review-button").click((function(){StackExchange.helpers.toggleStacksPopover(r,!1),StackExchange.helpers.toggleUserFlags(StackOverflow.Models.UserFlags.ShowReviewQueueNotice|StackOverflow.Models.UserFlags.ReviewQueueNoticeIsForCampaign,!1),StackExchange.helpers.toggleAccountPreferenceFlags(StackOverflow.Models.AccountPreferenceFlags.DismissReviewQueueNoticeCampaign,!0)}))}},hideAll:x,handleRealtimeMessage:function(e){var t;if(e&&(t=JSON.parse(e)))for(var n in S("realtime message - "+e),t)for(var a=0;a<E.length;a++)if(n==E[a].name){E[a].handleRealtimeMessage(t[n]);break}},toggleUnpinnedLeftNav:function(e){var t,n,a=$("html").hasClass("html__unpinned-leftnav");arguments.length||(e=!a),a!==!!e&&(e?($("html").addClass("html__unpinned-leftnav"),t="sm md lg",n=""):($("html").removeClass("html__unpinned-leftnav"),t="sm",n="md lg"),$(".js-pinned-left-sidebar").attr("data-is-here-when",n),$(".js-unpinned-left-sidebar").attr("data-is-here-when",t),StackExchange.responsive.forceCheck())},SearchAutoComplete:y}}()},91487:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.notify=function(){var e=0;function t(e,t,n){var a=t*parseInt($("body").css("margin-top").match(/\d+/))/e;n?$("body:not(.no-message-slide), body:not(.no-message-slide) .js-top-bar").animate({marginTop:a+"px"},"fast","linear"):$("body:not(.no-message-slide), body:not(.no-message-slide) .js-top-bar").css("marginTop",a+"px")}var n=function(n,a){var i=$("#notify-"+n+(a?"-"+a:""));i.length&&(n>=0&&$.post("/messages/mark-as-read",{messagetypeid:n,id:a||null}),function(e,t){var n=$("#dismissed-messages");n.val(n.val()+"~"+e+(t?" "+t:"")+"~")}(n,a),e--,i.fadeOut("fast",(function(){t(e+1,e,!0),i.remove(),0===$("#notify-container div").length&&$("#notify-container").hide()})))},a=function(t){if(e++,function(e,t){var n=$("#dismissed-messages").val();return!!n&&new RegExp("~"+e+(t?" "+t:"")+"~").test(n)}(t.messageTypeId,t.id))return!1;var a="";t.messageTypeId&&(a=' id="notify-'+t.messageTypeId+(t.id?"-"+t.id:"")+'"');var i="<div"+a+' style="display:none"><span class="notify-close">'+$("<a>&times;</a>").attr("title",__tr(["отказаться от этого уведомления"], undefined, "ru", [])).outerHTML()+'</span><span class="notify-text">'+t.text+"</span>";if(t.showProfile){var s=encodeURIComponent("/users/"+t.userId+"?tab=badges&sort=recent");i+=" "+__tr(["См. <a href=\"$url$\">профиль</a>."], {url: "/messages/mark-as-read?messagetypeid=" + t.messageTypeId + "&returnurl=" + s}, "ru", [])}i+="</div>";var o=$(i);return t.cssClass&&o.addClass(t.cssClass),o.find(".notify-close").click((function(){t.close&&t.close(),n(t.messageTypeId,t.id)})),$("#notify-container").append(o),$("#notify-container").show(),!0},i=function(){$("#notify-container div").fadeIn("slow")};return{showMessages:function(n){for(var s=0,o=e,r=n.length,c=0;c<r&&c<n.length;c++)a(n[c])&&s++;t(o,s,!1),i()},show:function(e,t,n){$("body:not(.no-message-slide), body:not(.no-message-slide) .js-top-bar").animate({marginTop:"2.5em"},"fast","linear"),a({text:e,messageTypeId:t,cssClass:n}),i()},close:n,getMessageText:function(e){return $("#notify-"+e+" .notify-text").text()}}}()},39960:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.moveScroller=function(){var e=$("#scroller").width(),t=function(){var t="lg"===StackExchange.responsive.currentRange(),n=$(window).scrollTop(),a=$("#scroller-anchor").offset().top,i=$("#scroller"),s=StackExchange.scrollPadding.getPaddingTop()+"px";t&&n>a?i.height()>$(window).height()?i.css({position:"fixed",top:"",bottom:"0",width:e,"z-index":3}):i.css({position:"fixed",top:s,bottom:"",width:e,"z-index":3}):i.css({position:"relative",top:"",bottom:"",width:""})};StackExchange.responsive.addBreakpointListener((function(){var n=$("#scroller"),a=n[0].style.width,i=n[0].style.position;n.css({position:"relative",width:""}),e=n.width(),n.css({position:i,width:a}),t()})),$(window).scroll(t).resize(t),t()}},13215:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.styleCode=function(){function e(){if("undefined"==typeof jtab){var e=!1;$(".js-post-body pre code, .js-wmd-preview pre code").parent().each((function(){var t="s-code-block",n="prettyprint-override";if($(this).hasClass(n)&&($(this).removeClass(n).addClass(t),e=!0),!$(this).hasClass(t)){var a=$("#js-codeblock-lang").text()||null;a&&($(this).addClass(a).addClass(t),e=!0)}}));var t=window.location.href.match(/posts\/\d*\/revisions$/),n=window.location.href.match(/review\/suggested-edits\/\d*$/);!e||t||n||StackExchange.using("highlightjs",(function(){$("pre.s-code-block code:not(.hljs)").each((function(){StackExchange.highlightjs.instance.highlightElement(this)}))}))}else jtab.renderimplicit()}return function(){"undefined"!=typeof MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub]),StackExchange.ifUsing("snippets",(function(){StackExchange.snippets.redraw&&StackExchange.snippets.redraw()})),e(),styleCode.initializeSpoilers()}}(),styleCode.initializeSpoilers=function(){$("body").off("click.spoilers",".spoiler").on("click.spoilers",".spoiler",(function(e){if(e.target.classList.contains("spoiler")&&!e.target.classList.contains("is-visible"))return e.preventDefault(),e.target.classList.add("is-visible"),!1})),$(".spoiler:not([data-spoiler])").attr("data-spoiler",__tr(["Раскрыть спойлер"], undefined, "ru", []))},styleCode.updateSpoilersOnPreviewRefresh=function(){StackExchange.MarkdownEditor&&StackExchange.MarkdownEditor.creationCallbacks.add((function(e){e.hooks.chain("onPreviewRefresh",(function(){styleCode.initializeSpoilers()}))}))},styleCode.updateLangdivDelayed=StackExchange.helpers.DelayedReaction((function(e){var t=$("#js-codeblock-lang");t.length&&$.get("/api/tags/langdiv",{tags:e.join(" ")}).done((function(e){e?t.replaceWith(e):t.empty(),StackExchange.MarkdownEditor.refreshAllPreviews(),styleCode()}))}),1500,{sliding:!0})},77754:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.helpers.MagicPopup=function(e){var t,n,a,i,s={};var o=StackExchange.helpers.DelayedReaction((function(n,o){var r;!i&&n&&(e.cache&&"c_"+n in s?r=$.Deferred().resolve(s["c_"+n]):(r=$.ajax({type:"GET",url:n,dataType:"html"}),e.cache&&r.done((function(e){s["c_"+n]=e}))),r.done((function(n){t&&t(),""!=n&&function(n,i){if($.contains(document.documentElement,n)&&(!e.predicate||e.predicate(n))){var s=$("<div />").attr("id",e.id).addClass(e.className).html(i),o=$(".lightbox, .lightbox-panel"),r=o.length>0?+o.css("z-index"):1e3,c=$("<div />").css({position:"absolute","z-index":r+2,width:1,height:1,top:0,left:0});e.unclipped||c.css({overflow:"hidden"}),c.append(s).appendTo("body"),window.MathJax&&MathJax.Hub.Typeset(s[0]);var l=e.showing(n,s);if(l){var u,d={left:l.left};l.hasOwnProperty("bottom")?(d.bottom=l.bottom,d.top="auto"):d.top=0|l.top,e.shown&&(u=function(){e.shown(n,s)}),c.css(d);var h={height:s.outerHeight()+8,width:s.outerWidth()+8};e.fade?c.css(h).css("display","none").fadeIn(300,u):c.animate(h,300,u)}t=function(){c.stop().remove(),e.removed&&e.removed(n,s),a=null,t=null},a=StackExchange.helpers.DelayedReaction(t,e.dismissDelay||5);var g=c;l&&l.additional&&(g=g.add(l.additional)),g.hover(a.cancel,a.trigger)}}(o,n)})))}),500);$(document).delegate(e.selector,{mouseenter:function(){if(!a||this!==n)return n=this,o.trigger(e.getUrl(this),this),i=!1,!1;a.cancel()},mouseleave:function(){i=!0,o.cancel(),a&&a.trigger()}})}},69977:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.tagmenu=function(){var e=!1;return{init:function(){if(!e){e=!0;var n,a={selector:".post-tag:not(.user-tag,.no-tag-menu,.invalid-tag,.job-link)",className:"tag-popup",getUrl:(n="/popup",function(e){var t=function(e){var t=$(e);if(t.closest(".mixed-site-content, .js-post-body, .js-tag-preferences-container").length)return null;var n=t.attr("href"),a=t.data("tag-menu-tagname");a&&(a=a.toString());if(!(a||n&&"/"===n.charAt(0)))return null;var i=a||t.text();if(i.indexOf("*")>-1)return null;return t.attr("title",""),"/tags/"+encodeURIComponent(i)}(e);return null!==t?t+n:t}),showing:t,fade:!0,unclipped:!0};StackExchange.helpers.MagicPopup(a)}}};function t(e,t){var n=$(e),a=$(window),i=t.find(".js-source-arrow"),s=$(".left-sidebar:visible"),o=n.offset(),r=n.outerHeight(),c=o.left+n.outerWidth()/2,l=t.outerWidth(),u={left:c-l/2},d=o.top+r,h=a.scrollTop(),g=h+a.height()+-StackExchange.scrollPadding.getPaddingTop();t.outerHeight()+d>g&&o.top+8-t.outerHeight()>h?(u.bottom=a.height()-o.top-8,i.addClass("-bottom")):(u.top=d,i.addClass("-top"));var p=s.length?s.offset().left+s.outerWidth():0,f=a.width();o.left+l>f&&(u.left=f-l),u.left<p&&(u.left=p);var m=c-(u.left+l/2);return i.css("margin-left",m+"px"),u}}()},85082:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.usermenu=function(){var e,t,n,a;return{init:function(){e||(e=!0,StackExchange.helpers.MagicPopup({selector:".user-hover .user-gravatar48, .user-hover .user-gravatar32, .js-user-hover-target",predicate:function(e){return!$(e).closest(".mixed-site-content").length},getUrl:function(e){var t,n=$(e);if(n.is(".js-user-hover-target"))t=parseInt(n.data("userId"),10);else{var i=n.closest(".user-hover").find(".user-details a").attr("href"),s=new RegExp("/users/([^/]+).*$").exec(i);if(!s)return null;t=parseInt(s[1])}a=!StackExchange.options.user.isAnonymous&&t===StackExchange.options.user.userId;return"/users/user-info/"+t},cache:!0,id:"user-menu",showing:i,shown:s,removed:o}))}};function i(e,i){var s=$(e).find("img:last"),o=s.offset(),r=s.height(),c=s.width(),l=Math.max(c,r),u=64*r/l,d=64*c/l,h=i.find("img:first").css({width:d,height:u}),g=h.offset();h.css("visibility","hidden"),t=s.clone().css({position:"absolute",zIndex:1003,left:o.left,top:o.top,width:c,height:r}).appendTo("body");var p=function(){h[0].complete?(h.css("visibility","visible"),t.fadeOutAndRemove()):setTimeout(p,100)},f=Math.max(0,o.left-g.left+i.outerWidth()-$(window).width()+8);t.animate({width:d,height:u,top:o.top+g.top,left:o.left-f},200,p),i.trigger("userhovershowing",e),n=!0;var m=i.find(".um-header-info a:not(.um-user-link), .um-about-me a, .um-links a").length>0;return StackExchange.gps.track("user_popup.show",{is_own:a,has_links:m}),setTimeout((function(){n&&StackExchange.gps.track("user_popup.read",{is_own:a,has_links:m})}),2e3),i.on("click",".um-gravatar a, a.um-user-link",(function(){StackExchange.gps.track("user_popup.click",{clicked_link:0,is_own:a})})),i.on("click",".um-header-info a:not(.um-user-link)",(function(){StackExchange.gps.track("user_popup.click",{clicked_link:1,is_own:a})})),i.on("click",".um-about-me a",(function(){StackExchange.gps.track("user_popup.click",{clicked_link:2,is_own:a})})),i.on("click",".um-links a",(function(){StackExchange.gps.track("user_popup.click",{clicked_link:3,is_own:a})})),{top:o.top,left:o.left-g.left-f,additional:t}}function s(e,t){t.trigger("userhovershown")}function o(e,a){$(e).trigger("userhoverremoved"),t.remove(),n=!1}}()},50266:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.chatAd=function(){var e,t,n=180,a=480,i=[__tr(["янв."], undefined, "ru", []),__tr(["февр."], undefined, "ru", []),__tr(["март"], undefined, "ru", []),__tr(["апр."], undefined, "ru", []),__tr(["мая"], undefined, "ru", []),__tr(["июнь"], undefined, "ru", []),__tr(["июль"], undefined, "ru", []),__tr(["авг."], undefined, "ru", []),__tr(["сент"], undefined, "ru", []),__tr(["окт."], undefined, "ru", []),__tr(["нояб."], undefined, "ru", []),__tr(["дек."], undefined, "ru", [])];function s(e){return e<10?"0"+e:e}function o(e){var t=Math.floor((new Date).getTime()/1e3)-e,n=t%60,a=Math.floor(t/60),o=Math.floor(t/3600);if(t<1)return __tr(["только что"], undefined, "ru", []);if(t<60)return __tr(["$seconds$ секунду назад","$seconds$ секунды назад","$seconds$ секунд назад"], {seconds: n}, "ru", ["seconds"]);if(t<3600)return __tr(["$minutes$ минуту назад","$minutes$ минуты назад","$minutes$ минут назад"], {minutes: a}, "ru", ["minutes"]);if(t<86400)return __tr(["$hours$ час назад","$hours$ часа назад","$hours$ часов назад"], {hours: o}, "ru", ["hours"]);var r=Math.floor(t/86400);if(1==r)return __tr(["вчера"], undefined, "ru", []);if(r<=2)return __tr(["$__count$ день назад","$__count$ дня назад","$__count$ дней назад"], {__count: r}, "ru", ["__count"]);var c=new Date(1e3*e);return __tr(["$month$ $date$ в $hours$:$minutes$"], {month: i[c.getMonth()],date: c.getDate(),hours: c.getHours(),minutes: s(c.getMinutes())}, "ru", [])}function r(){t&&$.get(t,null,h)}function c(e){if("!"===e.charAt(0)){var t=e.substr(1);if(/^https?:\/\/i.stack.imgur.com\//.test(t))t+=(/\?/.test(t)?"&":"?")+"g&s=32";return t}return"https://www.gravatar.com/avatar/"+e+"?s=23&d=identicon&r=PG"}function l(t){for(var n=$('<div class="d-flex gs4 ai-center fw-wrap" />'),a=0;a<t.length&&a<7;a++){var i=t[a],s=i.name;i.lastPost&&(s+=": "+o(i.lastPost));var r=$('<img class="bar-sm">').attr({title:s,src:c(i.emailhash),width:23,height:23}),l=$('<a class="flex--item">').attr("href",e+"/users/"+i.id).append(r);n.append(l)}return n}function u(t){var n=t.user,a=t.userid;return a?$("<a>").attr("href",e+"/users/"+a).text(n):$("<span>").text(n)}function d(){t&&(n<=a&&window.setTimeout(r,1e3*n),n+=30)}function h(t,n,a){var i=$(".js-chat-ad-rooms");if(t.error)d();else{i.empty();for(var r,c,h,g=t.rooms,p=0;p<g.length&&p<2;p++){var f=g[p],m=e+"/rooms/"+f.id,b=(f.messages||[]).length>0?f.messages[0]:null,v=$('<div class="d-flex fd-column gs2" />');$('<a class="flex--item" />').attr("href",m).text(f.name).appendTo(v),b&&$('<div class="flex--item fs-fine fc-black-300 mb4" />').attr("title",(c=f.lastPost,h=void 0,h=new Date,h.setTime(1e3*c),[h.getUTCFullYear(),"-",s(h.getUTCMonth()+1),"-",s(h.getUTCDate())," ",s(h.getUTCHours()),":",s(h.getUTCMinutes()),":",s(h.getUTCSeconds()),"Z"].join(""))).html(o(f.lastPost)+" - ").append(u(b)).appendTo(v),f.singleImage?v.append((r=f.id,$('<div class="flex--item"><img src="'+e+"/rooms/users/"+r+'.jpeg" /></div>'))):v.append(l(f.users)),i.append($('<div class="s-sidebarwidget--item" />').append(v))}i.toggleClass("d-none",0===g.length);var w=$(".js-chat-ad-link");t.activeUsers>1?w.text(__tr(["$num$ участник в чатах","$num$ участника в чатах","$num$ участников в чатах"], {num: t.activeUsers}, "ru", ["num"])):w.text(__tr(["Войти в чат"], undefined, "ru", [])),w.attr("title",__tr(["$users$ участник активен в $rooms$ чате (по информации за последний час)","$users$ участник активен в $rooms$ чатах (по информации за последний час)","$users$ участник активен в $rooms$ чатах (по информации за последний час)","$users$ участника активны в $rooms$ чате (по информации за последний час)","$users$ участника активны в $rooms$ чатах (по информации за последний час)","$users$ участника активны в $rooms$ чатах (по информации за последний час)","$users$ участников активны в $rooms$ чате (по информации за последний час)","$users$ участников активны в $rooms$ чатах (по информации за последний час)","$users$ участников активны в $rooms$ чатах (по информации за последний час)"], {users: t.activeUsers,rooms: t.activeRooms}, "ru", ["users","rooms"])),d()}}return{init:function(n){if(/^\/questions\/\d+/i.test(window.location.pathname)&&(a=0),e=n.chatUrl,t=n.reloadUrl,n.tagBased){var i=function(){var e=$(".question .post-taglist .post-tag");return e.length?e.map((function(e,t){return $(t).text()})).get().join(" "):null}();if(!i)return;t&&(t+=(/\?/.test(t)?"&":"?")+"tags="+encodeURIComponent(i))}null===n.preloadedData?r():h(n.preloadedData,null,null)}}}()},20812:()=>{var e,t;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},$.extend(StackExchange.helpers,(e={àåáâäãåąɐᵄᶛ:"a",æǣǽᴂᵆ:"ae",çćčĉ:"c",đƍðÐ:"d",èéêëęǝᴈᵌ:"e",ⅎ:"f",ğĝᵷ:"g",ĥɥʮᶣ:"h",ìíîïıᴉᵎ:"i",ĵ:"j",ʞ:"k",ł:"l",ɯɰᵚᶭᴟ:"m",ñń:"n",òóôõöøő:"o",œɶᴔ:"oe",řɹɺɻʴʵ:"r",śşšŝ:"s",ß:"ss",ʇ:"t",Þ:"th",ùúûüŭů:"u",ʌᶺ:"v",ʍ:"w",ýŸÿʎ:"y",żźž:"z"},t="\\u0030-\\u0039\\u0041-\\u005a\\u005f\\u0061-\\u007a\\u00aa\\u00b5\\u00ba\\u00c0-\\u00d6\\u00d8-\\u00f6\\u00f8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376-\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0621-\\u064a\\u0660-\\u0669\\u066e-\\u066f\\u0671-\\u06d3\\u06d5\\u06e5-\\u06e6\\u06ee-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07c0-\\u07ea\\u07f4-\\u07f5\\u07fa\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0966-\\u096f\\u0971-\\u0972\\u097b-\\u097f\\u0985-\\u098c\\u098f-\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc-\\u09dd\\u09df-\\u09e1\\u09e6-\\u09f1\\u0a05-\\u0a0a\\u0a0f-\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32-\\u0a33\\u0a35-\\u0a36\\u0a38-\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a66-\\u0a6f\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2-\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0-\\u0ae1\\u0ae6-\\u0aef\\u0b05-\\u0b0c\\u0b0f-\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32-\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c-\\u0b5d\\u0b5f-\\u0b61\\u0b66-\\u0b6f\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99-\\u0b9a\\u0b9c\\u0b9e-\\u0b9f\\u0ba3-\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0be6-\\u0bef\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58-\\u0c59\\u0c60-\\u0c61\\u0c66-\\u0c6f\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0-\\u0ce1\\u0ce6-\\u0cef\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d28\\u0d2a-\\u0d39\\u0d3d\\u0d60-\\u0d61\\u0d66-\\u0d6f\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32-\\u0e33\\u0e40-\\u0e46\\u0e50-\\u0e59\\u0e81-\\u0e82\\u0e84\\u0e87-\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa-\\u0eab\\u0ead-\\u0eb0\\u0eb2-\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0ed0-\\u0ed9\\u0edc-\\u0edd\\u0f00\\u0f20-\\u0f29\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8b\\u1000-\\u102a\\u103f-\\u1049\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065-\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u1090-\\u1099\\u10a0-\\u10c5\\u10d0-\\u10fa\\u10fc\\u1100-\\u1159\\u115f-\\u11a2\\u11a8-\\u11f9\\u1200-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u1676\\u1681-\\u169a\\u16a0-\\u16ea\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u17e0-\\u17e9\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u1900-\\u191c\\u1946-\\u196d\\u1970-\\u1974\\u1980-\\u19a9\\u19c1-\\u19c7\\u19d0-\\u19d9\\u1a00-\\u1a16\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b50-\\u1b59\\u1b83-\\u1ba0\\u1bae-\\u1bb9\\u1c00-\\u1c23\\u1c40-\\u1c49\\u1c4d-\\u1c7d\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u203f-\\u2040\\u2054\\u2071\\u207f\\u2090-\\u2094\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2183-\\u2184\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2c6f\\u2c71-\\u2c7d\\u2c80-\\u2ce4\\u2d00-\\u2d25\\u2d30-\\u2d65\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3006\\u3031-\\u3035\\u303b-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31b7\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fc3\\ua000-\\ua48c\\ua500-\\ua60c\\ua610-\\ua62b\\ua640-\\ua65f\\ua662-\\ua66e\\ua67f-\\ua697\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78c\\ua7fb-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8d0-\\ua8d9\\ua900-\\ua925\\ua930-\\ua946\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa50-\\uaa59\\uac00-\\ud7a3\\uf900-\\ufa2d\\ufa30-\\ufa6a\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40-\\ufb41\\ufb43-\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe33-\\ufe34\\ufe4d-\\ufe4f\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff10-\\uff19\\uff21-\\uff3a\\uff3f\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",{noDiacritics:function(t){for(var n in e)e.hasOwnProperty(n)&&(t=t.replace(new RegExp("["+n+"]","g"),e[n]));return t},tagSeparator:function(e){if(e=$.trim(e),/^\|.*\|$/.test(e))return"|";var n=StackExchange.settings.tags.allowNonAsciiTags?t:"";return!/\s/.test(e)&&RegExp("[A-Za-z"+n+"0-9#\\-.*]\\+[A-za-z"+n+"0-9#\\-.]").test(e)?"+":/[\s|,;]+/},sanitizeAndSplitTags:function(e,n,a,i){for(var s=$.trim(e).split(StackExchange.helpers.tagSeparator(e)),o=[],r=0;r<s.length;r++){var c=s[r];i||(c=c.toLowerCase()),StackExchange.settings.tags.allowNonAsciiTags||(c=StackExchange.helpers.noDiacritics(c)),c=c.replace(/_/g,"-");var l=(i?"[^A-Za-z0-9.#+":"[^a-z0-9.#+")+(n?"*":"")+(StackExchange.settings.tags.allowNonAsciiTags?t:"")+"-]";c=(c=(c=c.replace(new RegExp(l,"g"),"")).replace(/^[#+-]+/,"")).replace(/[.-]+$/,"");var u=-1!==["or","and","not"].indexOf(c),d=-1!==o.indexOf(c);c.length>0&&(!u&&!d||a)&&o.push(c)}return o}}))},65316:(e,t,n)=>{"use strict";n.r(t);var a=n(52443);StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.question=function(){function e(){$(".js-answer-help").removeClass("d-none").attr("aria-hidden","false")}function t(e){e.preventDefault(),$(".js-answer-help").addClass("d-none").attr("aria-hidden","true")}function n(){$("#qualityBanWarningShown").val("true"),$(".js-answer-ban").removeClass("d-none").attr("aria-hidden","false")}function i(e){e.preventDefault(),$(".js-answer-ban").addClass("d-none").attr("aria-hidden","true")}var s;function o(e){return $(".question[data-questionid="+e+"], .answer[data-answerid="+e+"]")}var r=function(e){e.addClass("highlighted-post")},c=function(){var e="click.shareLinks";$(document).off(e).on(e,".bottom-share-links a",(function(e){var t=$(this).attr("href"),n=null;t&&t.length&&(t.indexOf("%3fsgp%3d")>=0?n=1:t.indexOf("%3fsfb%3d")>=0?n=2:t.indexOf("%3fstw%3d")>=0?n=3:t.indexOf("%3fsem%3d")>=0&&(n=4)),n&&StackExchange.gps.track("share.click",{location:3,service:n},!0)}));var t=$(".bottom-notice");t&&t.length&&t.data("loc")&&t.off(e).on(e,"a",(function(){var e=0,n=t.data("loc"),a=$(this).attr("href");$(this).hasClass("post-tag")?e=1:/\/ask$/.test(a)?e=2:/\/tags$/.test(a)?e=4:/\/unanswered$/.test(a)?e=5:(/\/questions$/.test(a)||/\/questions[?\/]/.test(a))&&(e=3),StackExchange.gps.track("next_action.click",{type:e,location:n},!0)}))},l=function(){var e=window.location.hash.replace("#","").toLowerCase();if(e){var t=e.split("_"),n=t[0],a=t[1],i=!0;switch(n){case"answer":StackExchange.using("editor",(function(){var e=$("#wmd-input");e.is(":visible")?e.focus():window.setTimeout((function(){$(".js-add-another-answer").click()}),10)}));break;case"addcomment":a&&$("#comments-link-"+a).find(".js-add-link").click();break;case"notify":$(".js-inline-mentions-edit-link").click();break;default:i=!1}i&&window.history.replaceState(null,null,window.location.href.split("#")[0])}};function u(){var e=function(e,n){e.attr("aria-pressed",n?"true":"false").each((function(){var e=$(this).data("selected-classes");e&&$(this).toggleClass(e,n)}));var a=t(e)?e.data("remove-endorsement-title"):e.data("add-endorsement-title");e.each((function(){Stacks.setTooltipHtml($(this)[0],a,{placement:"right"})}))},t=function(e){return"true"===e.attr("aria-pressed")},n=function(t){var n=$(".js-endorse-link");e(n,!1),$(".js-endorsements").empty();for(var a=0;a<t.ExplicitEndorsements.length;a++){var i=t.ExplicitEndorsements[a],s=i.PostId,o=i.HasEndorsements,r=$(i.EndorsementContent);if(s&&r){var c=$("#answer-"+s).find(".js-endorsements");if(c.length>0)c.replaceWith(r);else $("#answer-"+s).find(".answercell").prepend(r);var l=r.parents(".answer").find(".js-endorse-link");e(l,o)}}},a=$(".js-endorse-link"),i=a.data("single-community-slug");i?a.click((function(){var e=$(this);if(!e.is(":working")){e.working(!0);var a=t(e),s=e.data("action-edit-endorsement-url");$.ajax({type:"POST",url:s,content:"application/json; charset=utf-8",dataType:"json",data:{fkey:StackExchange.options.user.fkey,EndorseActions:[{perform:a?"Remove":"Add",slug:i}]}}).success((function(e,t,a){e.Success?n(e):StackExchange.helpers.showToast(e.Message,{type:"danger"})})).error((function(){StackExchange.helpers.showToast(__tr(["Error updating recommendation"], undefined, "ru", []),{type:"danger"})})).always((function(t,n,a){e.working(!1).trigger("update")}))}})):a.click((function(e){var t=$(this);if(!t.is(":working")){t.working(!0);var a=t.data("action-endorse-modal-url");return StackExchange.helpers.loadModal(a).done((function(){const e=$(".js-stacks-managed-popup");var a=$(".js-change-recommendation"),i=$("input.js-community-selection"),s=$(".js-submit-recommendation");function o(){for(var e=0;e<i.length;e++){var t=$(i[e]);if(!!t.data("original-state")!=!!t.is(":checked"))return!0}return!1}i.change((function(){s.prop("disabled",!o())})),a.submit((function s(r,c){if(r.preventDefault(),o()){var l=[];if(c&&c.length>0)l=c;else for(var u=0;u<i.length;u++){var d=$(i[u]),h=!!d.data("original-state"),g=!!d.is(":checked");h!==g&&l.push({slug:d.data("slug"),perform:g?"add":"remove"})}var p=a.prop("action");$.post(p,{fkey:StackExchange.options.user.fkey,endorseActions:l}).success((function(t,a,i){if(t.Success){n(t);for(var o=0;o<l.length;o++){var c="add"===l[o].perform;l[o].perform=c?"remove":"add"}StackExchange.helpers.showToast(t.Message.Message,{type:"success",actions:[{labelContents:"Undo",click:function(){s(r,l)}}]}),e.remove()}else StackExchange.helpers.showToast(t.Message,{type:"danger"})})).error((function(){StackExchange.helpers.showToast("Error updating recommendations",{type:"danger"})})).always((function(e,n,a){t.working(!1).trigger("update")}))}else StackExchange.helpers.showToast(__tr(["No changes to save"], {transient: !0}, "ru", []))})),i.change(),t.working(!1).trigger("update")})).always((function(){t.working(!1).trigger("update")})),t.working(!1).trigger("update"),e.preventDefault(),!1}})),$(".js-endorse-link").each((function(){var n=$(this);e(n,t(n))}))}function d(e){let t=window.location.href;$.ajax({type:"POST",url:t,data:{fkey:StackExchange.options.user.fkey,sortOrderPreference:e}})}return{initTitleSearch:function(e,t,n){var a,i=document.title,s=n.searchRouteOverride||"/search/titles",o=n.onResults||function(){},r=0;e.attr("autocomplete","off");var c=function(c){var l=e.val();if(!(""==l||l==a&&!0!==c||StackExchange.settings.site.newTitleSearchBoxEnabled&&$(".title-float-selected:visible").length>0)){for(var u=l.split(" "),d=0,h=0;h<u.length;h++)$.trim(u[h]).length>0&&d++;var g=(new Date).getTime();!0!==c&&(d<3||(g-r)/1e3<5)&&!e.hasClass("edit-field-overlayed")||(r=g,a=l,n.siteName&&(document.title=l?l+" - "+n.siteName:i),$(".js-similar-questions-loader").length?(t.empty(),StackExchange.helpers.addStacksSpinner(t,"lg","fc-orange-400 ml16 mt12")):(t.empty(),StackExchange.helpers.addSpinner(t)),$.ajax({url:s,dataType:"json",data:{title:l},success:function(e){e&&e.content?(t.html(e.content),setTimeout((function(){o(t.find(".answer-link a").attr("target","_blank"))}),1),$(".js-link").attr("target","_blank"),$(".js-verify-not-duplicate").removeClass("d-none"),$(".js-next-title").prop("disabled",!0),$(".js-similar-questions-outer-div").length&&($(".js-similar-questions-outer-div").removeClass("d-none"),$(".js-question-summary-scroll").one("scroll",(function(){StackExchange.using("gps",(function(){StackExchange.gps.track("similarquestions.title_scroll")}))})))):o(null)},complete:function(e){e.responseJSON.content.length>0&&StackExchange.helpers.removeSpinner(t),$(".js-next-title").prop("disabled",!1)}}))}},l=!1;return t.mouseenter((function(){l=!0})).mouseleave((function(){l=!1})),e.keyup(c).blur((function(){var e=function(){r=0,c()};l?t.one("mouseleave",e):e()})),e.val()&&c(),function(e){r=0,c(e)}},getQuestionId:function(e){var t=(e?e.closest(".question"):$(".question")).data("questionid");if(!t)throw new Error("getQuestionId could not find an id");return t},initShareLinks:c,canViewVoteCounts:function(){return s},scrollToPost:function(e){var t=o(e);if(0===t.length)return!1;var n=t.hasClass("question")?"#question":"#"+e;return location.hash!==n?location.hash=n:t.scrollIntoView(),r(t),!0},scrollToComment:function(e,t){if(0===o(t).length)return!1;var n="#comment"+e+"_"+t;return location.hash!==n?location.hash=n:StackExchange.comments.highlight(e,t),!0},instrumentVotingForVotePromptExperiment:function(){$(".js-voting-container").each((function(e,t){var n=$(t),a=+n.data("post-id"),i=n.find(".js-vote-up-btn"),s=n.find(".js-vote-down-btn");i.attr("data-gps-track","post.prompted_vote({post_id:"+a+", vote_type: 2})").addClass("js-gps-track"),s.attr("data-gps-track","post.prompted_vote({post_id:"+a+", vote_type: 3})").addClass("js-gps-track"),StackExchange.using("gps",(function(){StackExchange.gps.bindTrackClicks(n)}))}))},init:function(h){var g,p;s=h.canViewVoteCounts,StackExchange.question.fullInit?StackExchange.question.fullInit(h):(StackExchange.question.bindAnonymousVoteDisclaimers(),StackExchange.OutdatedAnswers.initAnon(!0)),StackExchange.comments.init({autoShowCommentHelp:h.autoShowCommentHelp,commentHighlightFocus:h.commentHighlightFocus}),c(),h.showAnswerBanWarning&&$("#wmd-input").one("focus",n),$(".js-answer-ban-close-btn").on("click",i),h.showAnswerHelp&&!h.showAnswerBanWarning&&$("#wmd-input").one("focus",e),$(".js-answer-help-close-btn").on("click",t),h.focusPostEditor&&($("#wmd-input").focus(),$("#post-form")[0].scrollIntoView(!0)),u(),h.showCitation&&$(document).on("click",".js-post-menu .js-cite-link",(function(e){e.preventDefault(),function(e){const t=e.closest(".js-post-menu"),n=t.attr("data-post-id"),i=t.find(".js-menu-popup-container");if(i.find(".js-cite-popup").length>0)return;const s=$('\n        <div class="js-cite-popup popup d-block ws6 c-auto">\n            <div class="js-cite-example mb4"></div>\n            <form class="d-flex gs8">\n                <label class="flex--item"><input type="radio" class="s-radio js-cite-bibtex" name="reftype" checked="checked"/> BibTeX</label>\n                <label class="flex--item"><input type="radio" class="s-radio js-cite-amsrefs" name="reftype" /> amsrefs</label>\n            </form>\n            <textarea class="js-cite-text s-textarea w100 d-block mt4" rows="9"></textarea>\n            <button type="button" class="s-btn js-cite-close mt8 mbn4 p2">Close</button>\n        </div>');s.find(".js-cite-close").click((function(){s.fadeOutAndRemove()})),s.find("form").on("submit",(function(e){e.preventDefault()}));const o=s.find(".js-cite-example"),r=s.find(".js-cite-bibtex"),c=s.find(".js-cite-amsrefs"),l=s.find(".js-cite-text");i.append(s),(0,a.pK)(o),$.ajax({type:"GET",url:"/posts/"+n+"/citation",dataType:"json",success:function(e){(0,a.eu)(),o.html(e.example),l.val(e.bibtex),r.click((function(){l.val(e.bibtex)})),c.click((function(){l.val(e.amsref)}))}})}($(this))})),StackExchange.helpers.bindOnHashChange_HighlightDestination((function(e,t){StackExchange.comments.highlight(e,t)}),(function(e){var t=o(e);r(t)})),function(){try{localStorage.removeItem("nextPrevTrackState"),localStorage.removeItem("nextPrevTrackState2"),localStorage.removeItem("nextPrevState")}catch(e){}}(),$(document).on({mouseenter:function(){var e=$(this),t=e.find(".js-new-contributor-label"),n=e.find(".js-new-contributor-popover");p&&this===g?p.cancel():(n.addClass("is-visible").css({top:e.height()+4,left:t.position().left+t.width()/2-e.width()/2,width:e.width()}),g=this,p=StackExchange.helpers.DelayedReaction((function(){n.removeClass("is-visible"),p=null}),100))},mouseleave:function(){p&&p.trigger()}},".js-new-contributor-indicator"),$(".downvoted-answer").on("click",(function(e){$(e.target).parents(".downvoted-answer").find(".s-prose, .comment-body, .post-signature, .vote > *").toggleClass("o100")})),$(document).on("click",".js-sort-preference-change",(function(){d($(this).attr("data-value"))})),$(document).on("change","#answer-sort-dropdown-select-menu",(function(e){const t=e.target.value,n=new URL(window.location.href);n.searchParams.set("answertab",t),n.searchParams.delete("page"),n.searchParams.delete("tab");const a=n?.toString().replace(/#.*$/,"");window.location.href=a+"#tab-top",d(t)})),window.setTimeout(l,0)}}}(),StackExchange.question.bindAnonymousVoteDisclaimers=function(){function e(e){var t=$(this),n=t.closest(".js-voting-container"),a=t.hasClass("js-vote-up-btn"),i=t.hasClass("js-vote-down-btn"),s=t.hasClass("js-bookmark-btn"),o=t.hasClass("js-follow-post"),r=t.closest(".answer").length;if(e.preventDefault(),a||i||o){if(StackExchange.options.inReadOnly)return void n.showErrorMessage(__tr(["Невозможно голосовать за то, что доступно в режиме «только  для чтения»."], undefined, "ru", []),{transient:!0});var c=n.data("post-id");if(o){var l=t.closest(".question").length>0;r=!l,c=parseInt(l?t.closest(".question").data("questionid"):t.closest(".answer").data("answerid"))}var u=o?21:a?2:3;if(n.is(":working"))return;n.working(!0),StackExchange.helpers.removeMessages(),$.ajax({type:"POST",url:"/posts/popup/anon-vote/{postId}?voteTypeId={voteTypeId}".formatUnicorn({postId:c,voteTypeId:u}),data:{fkey:StackExchange.options.user.fkey},dataType:"html",success:function(e){-1!==e.indexOf("js-research-toast")?StackExchange.helpers.showToast(e,{transient:!1}):(StackExchange.openid.showLoginModal(e,{returnElements:t}),(a||i)&&StackExchange.using("gps",(function(){StackExchange.gps.track("vote_popup.show",{type:r?2:1})})))},complete:function(){n.working(!1)}})}else if(s){if(StackExchange.options.inReadOnly)return void n.showErrorMessage(__tr(["Функционал закладок недоступен, пока сайт в режиме чтения."], undefined, "ru", []),{transient:!0});var d=__tr(["Пожалуйста, $startAnchor$авторизуйтесь или зарегистрируйтесь$endAnchor$, чтобы иметь возможность добавлять вопросы в закладки."], {startAnchor: '<a href="/users/login?ssrc=bookmark_question&returnurl=' + escape(document.location) + '">',endAnchor: "</a>"}, "ru", []);StackExchange.using("gps",(function(){StackExchange.gps.track("favorite_popup.show",{})})),StackExchange.helpers.showMessage(t,d,{type:"info",position:{my:"left top",at:"right center"},css:{"margin-left":"-10px"}})}}$(".js-vote-down-btn, .js-vote-up-btn, .js-bookmark-btn:not(.disabled), .js-follow-post:not(.disabled)").each((function(){var t=$(this);t.data("bound-anonymous")||(t.data("bound-anonymous",!0),t.click(e))})),StackExchange.question.bindFetchAcceptedAnswerDates()},StackExchange.question.bindFetchAcceptedAnswerDates=function(){$(".js-accepted-answer-indicator").on("mouseenter mouseleave focus",(function(){var e=$(this);if(!e.is(":working")){e.working(!0);var t=e.closest(".answer").data("answerid");if(t){var n="/posts/"+t+"/accepted-answer-date";$.get(n,(function(t){e.setTooltipHtml(t)}))}else e.removeAttr("title data-controller")}}))},StackExchange.question.addAnswerIvcObservers=function(){var e=new Set,t=(new Set,new IntersectionObserver((function(t,n){t.forEach((function(t){if(t.isIntersecting){var a=t.target.closest(".js-answer"),i=a.dataset.answerid;e.has(i)||(e.add(i),o="intersection",r=(s=a).querySelector(".js-post-body").getBoundingClientRect(),c={v:"1",contentHeight:r.height.toFixed(1),contentY:(r.y+window.scrollY).toFixed(1),scrollY:window.scrollY.toFixed(1),pageHeight:document.body.scrollHeight.toFixed(1),viewportHeight:window.innerHeight.toFixed(1),viewportWidth:window.innerWidth.toFixed(1),trigger:o},l=s.dataset.ivc+"&"+new URLSearchParams(c).toString(),$.get(l),n.unobserve(t.target))}var s,o,r,c,l}))})));document.querySelectorAll(".js-answer .js-vote-count").forEach((function(e){t.observe(e)}))}},54087:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.comments=function(){var e,t={};function n(e,t,n){this.postId=e,this.location=t.closest(".answer").length?"answer":t.closest(".question").length?"question":"other",this.jDiv=t,this.jCommentsList=t.find(".js-comments-list"),this.jCommentsLinkContainer=$("#comments-link-"+e),this.context=n}var a,i=function(){};function s(e){"string"==typeof e&&(e=$("#comment-"+e)),e.addClass("comment__highlight"),setTimeout((function(){e.removeClass("comment__highlight new_comment")}),0)}function o(e){var a=e.constructor===$?e:$(e),i=a.closest(".js-comments-container");0===i.length&&(i=a.closest(".js-post-comments-component, .question, .answer, div[id^='post-'], .js-article").find(".js-comments-container"));var s=i.data("post-id"),o=i.data("comment-context")||"none",r=s+"-"+o;if(t[r])return t[r];var c=new n(s,i,o);return t[r]=c,c}function r(e){return 0===window.location.pathname.indexOf("/review")?0:e.closest(".question").length?1:e.closest(".answer").length?2:0}function c(e){e.preventDefault();var t=$(this),n=o(t),a=0===n.remainingCommentsCount(),i=t.hasClass("disabled-link"),s=n.jCommentsLinkContainer.data("rep");a&&n.jCommentsLinkContainer.data("anon")&&function(e,t){if(t.is(":working"))return;t.working(!0),StackExchange.helpers.removeMessages(),StackExchange.using("gps",(function(){StackExchange.gps.track("comment_popup.show",{type:r(t)})})),$.ajax({type:"POST",url:"/posts/popup/anon-comment/{postId}".formatUnicorn({postId:e}),data:{fkey:StackExchange.options.user.fkey},dataType:"html",success:function(e){StackExchange.openid.showLoginModal(e,{returnElements:t})},complete:function(){t.working(!1)}})}(n.postId,t),a&&n.jCommentsLinkContainer.data("reg")&&StackExchange.helpers.showMessage(t,__tr(["Чтобы оставить комментарий, у вас должно быть $linkStart$$rep$ баллов репутации$linkEnd$","Чтобы оставить комментарий, у вас должно быть $linkStart$$rep$ баллов репутации$linkEnd$","Чтобы оставить комментарий, у вас должно быть $linkStart$$rep$ баллов репутации$linkEnd$"], {rep: s,linkStart: "<a href='/help/privileges/comment'>",linkEnd: "</a>"}, "ru", ["rep"]),{type:"info",position:{my:"left top",at:"right center"},relativeToBody:!0}),t.hasClass("js-show-link")&&StackExchange.using("gps",(function(){StackExchange.gps.track("comment.show")}));var c=!1;if(t.hasClass("js-add-link")){c=!0;var l=n.location||"other",u=a?"all_shown":"hidden";StackExchange.using("gps",(function(){StackExchange.gps.track("comment.add",{location:l,type:u})}))}i||(e.preventDefault(),n.addShow(!1,c))}function l(e,t){for(var i in t||(a=e),e=e||a||{})e.hasOwnProperty(i)&&(n.prototype[i]=e[i])}function u(e){var t=location.href.indexOf("/questions/")>0,n=!t&&(location.href.endsWith("/election")||location.href.indexOf("/election/")>0),a=/\/collectives\/.+\/articles\//.test(location.href);(n||t||a)&&(t&&0==$(".question[data-questionid]").length||$(".js-comment .comment-date > span").each((function(){var i=$(this),s=i.closest(".js-comment").attr("id").substr("comment-".length),o=0;if(t){var r=i.closest(".answer"),c=r&&r.length?r.data("answerid"):0;o=c||StackExchange.question.getQuestionId()}else o=a?i.closest(".js-comments-container").data("post-id"):i.closest(".js-nomination").data("postid");var l=(e||"")+"#comment"+s+"_"+o;t||n||a?i.wrap('<a class="comment-link" href="{hash}"></a>'.formatUnicorn({hash:l})):i.wrap('<a class="comment-link" href="/q/{pid}/{hash}"></a>'.formatUnicorn({hash:l,pid:o}))})))}return n.prototype={checkDiscussion:i,ensureInput:i,renderTextInput:i,alterAddEditDataBeforeSubmit:i,saveEditingComments:i,restoreEditingComments:i,isInputShown:function(){var e=this.jDiv.find('form[id^="add-comment-"]');return e.children().length&&e.is(":visible")},commentsShown:function(){this.remainingCommentsCount(0)},remainingCommentsCount:function(e){if(void 0===e)return parseInt(this.jCommentsList.data("remaining-comments-count"))||0;this.jCommentsList.data("remaining-comments-count",e)},addShow:function(e,t){var n=this,a=this.loadAllComments().done((function(){n.checkDiscussion()}));if(t){var i=this.ensureInput();i&&!e&&i.focus()}a.done((function(){i&&i.length>0&&n.jCommentsLinkContainer.hide()}))},ajax:function(e,t,n,a){n&&!a&&StackExchange.helpers.addSpinner(n,{"margin-left":"10px"});var i=this;return $.ajax(e).fail((function(e){var s=e.responseText;(!s||s.indexOf("<html")>=0)&&(s=t||__tr(["An error occurred"], undefined, "ru", [])),StackExchange.helpers.showErrorMessage(n||i.jDiv,s,{transient:409==e.status}),n&&!a&&StackExchange.helpers.removeSpinner()})).done(StackExchange.helpers.removeSpinner).promise()},setCommentsMenu:function(e){var t="",n="";e>0&&(n=__tr(["Показать ещё <strong>$count$</strong> комментарий","Показать ещё <strong>$count$</strong> комментария","Показать ещё <strong>$count$</strong> комментариев"], {count: e}, "ru", ["count"])),this.isInputShown()||!this.jCommentsList.data("cansee")&&!this.jCommentsList.data("canpost")||(t=StackExchange.settings.comments.addButtonSaysSuggestImprovements?__tr(["Suggest improvements"], undefined, "ru", []):__tr(["Добавить комментарий"], undefined, "ru", [])),t.length||n||!this.jCommentsList.data("comments-unavailable")||(t=__tr(["Comments disabled on deleted / locked posts / reviews"], undefined, "ru", [])),StackExchange.options.inReadOnly&&(t="");var a=this.jCommentsLinkContainer.find(".js-add-link"),i=this.jCommentsLinkContainer.find(".js-show-link");a.html(t),i.html(n),t.length?a.removeClass("dno"):a.addClass("dno"),n.length?i.removeClass("dno"):i.addClass("dno"),t.length&&n.length?this.jCommentsLinkContainer.find(".js-link-separator").removeClass("dno"):this.jCommentsLinkContainer.find(".js-link-separator").addClass("dno"),this.jCommentsList.data("addlink-disabled")&&a.addClass("disabled-link")},clearHighlights:function(){this.jCommentsList.find(".js-comment").removeClass("new_comment").css("background-color","")},showComments:function(t,n,a,i){this.saveEditingComments(n);var o=!a,r={};if(this.clearHighlights(),o&&this.jCommentsList.find(".js-comment").each((function(e,t){t.id&&t.id.length&&(r[t.id]=!0)})),this.jCommentsList.empty().append(t),o){var c=null;this.jCommentsList.find(".js-comment").each((function(e,t){t.id&&t.id.length&&!r[t.id]&&(c||(c=t),$(t).addClass("new_comment"))}));var l=this.jCommentsList.find(".new_comment");s(l),e&&l.length&&!i&&l[0].scrollIntoView(!0)}this.restoreEditingComments(),this.setCommentsMenu(0),"undefined"!=typeof MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub]),u(),this.commentsShown()},loadAllComments:function(e,t,n,a){this.jDiv.removeClass("dno");var i=0===this.remainingCommentsCount();if(!e&&i)return $.Deferred().resolve().promise();var s=this;return this.ajax({type:"GET",url:"/posts/"+this.postId+"/comments"+(t||""),dataType:"html"},__tr(["При запросе комментариев возникла ошибка"], undefined, "ru", [])).done((function(e){s.showComments(e,null,n,a)})).promise()}},{init:function(n){var a=(n=n||{}).post||document;t={},$(a).off("click","a.js-add-link",c).on("click","a.js-add-link",c),$(a).off("click","a.js-show-link",c).on("click","a.js-show-link",c),a==document&&u(n.hashPrefix),l(null,!0),n.commentHighlightFocus&&(e=n.commentHighlightFocus)},loadAll:function(e,t){return o(e).loadAllComments(!0,t,!0,!0)},replaceAll:function(e,t){o(e).showComments(t,null,!0,!0)},realtimeMessage:function(e){var t=$("#comments-"+e);if(t.length){var n=o(t),a=n.jCommentsLinkContainer,i=(n.jCommentsList,n.remainingCommentsCount());i++,a.data("comments-count",i),a.attr("title",__tr(["Expand to show all comments on this post, or add one of your own"], undefined, "ru", [])),n.setCommentsMenu(i),a.removeClass("disabled-link"),n.remainingCommentsCount(i),a.show().fadeTo("fast",.7).fadeTo("fast",1)}},flashHighlight:s,highlight:function(e,t){var n="#comment-"+e,a=$(n);if(a.length)StackExchange.comments.flashHighlight(a),a[0].scrollIntoView(!0);else{var i=$("#comments-link-"+t);i.length&&StackExchange.comments.loadAll(i).done((function(){StackExchange.comments.flashHighlight(e),($(n)[0]||i.closest(".question, .answer")[0]).scrollIntoView(!0)}))}},extendPostUi:l,uiForPost:o}}()},1539:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.initTagRenderer=function(e,t,n){window.tagRenderer||(n=n||{tags:[],id:""},window.tagRendererRaw=function(a,i,s,o){i=i||"",s=s||"a";var r="",c=o?"s-tag":"post-tag",l=StackExchange.helpers.encodeHexHtmlEntities(a);i||(e&&$.inArray(l,e)>-1?r=o?"s-tag__required":"required-tag":t&&$.inArray(l,t)>-1&&(r=o?"s-tag__moderator":"moderator-tag"));var u=$("<"+s+">").addClass(c).addClass(r).addClass($.inArray(a,n.tags)>-1?"site"+n.id+" themed channel"+n.id+"-tag":"").text(a);return"a"===s.toLowerCase()&&u.attr({rel:"tag",href:i+"/questions/tagged/"+encodeURIComponent(a),title:__tr(["показать вопросы с меткой [$tag$]"], {tag: a}, "ru", [])}),u.outerHTML()},window.tagRenderer=function(e,t,n,a){return $(tagRendererRaw(e,t,n,a))},window.tagRenderer.requiredTags=e,window.tagRenderer.moderatorOnlyTags=t,window.tagRenderer.channelOptions=n)}},6646:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.initFadingHelpText=function(){var e={"wmd-input":"#how-to-format",tagnames:"#how-to-tag","tag-editor":"#how-to-tag",title:"#how-to-title","wmd-input-42":"#how-to-format","edit-comment":"#how-to-comment","js-stacks-editor-container":"#how-to-format"},t=$(".wmd-input, #tagnames, #title, .tag-editor input, #wmd-input-42, .edit-comment, .js-stacks-editor-container"),n=function(t){var n=$(t);return n.parent().hasClass("tag-editor")&&!n.closest(".js-mentions-input").length?e["tag-editor"]:n.hasClass("wmd-input")?e["wmd-input"]:n.hasClass("edit-comment")?e["edit-comment"]:n.hasClass("js-stacks-editor-container")?e["js-stacks-editor-container"]:e[$(t).attr("id")]};t.focusin((function(){var e=n(this);t.each((function(){var t=n(this);t!=e&&$(t).hide()}));var a=$(e);a.is(":visible")||a.wrap('<div class="dno" />').show().parent().fadeIn("slow",(function(){$(this).children().unwrap()}))}))}},73624:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e,t,n,a){var i=!("selectionStart"in e("<input type='text' />")[0]);e.fn.caret=function(e,n){var a,s,o=this[0];if("object"==typeof e&&"number"==typeof e.start&&"number"==typeof e.end)a=e.start,s=e.end;else if("number"==typeof e&&"number"==typeof n)a=e,s=n;else if("string"==typeof e)(a=o.value.indexOf(e))>-1?s=a+e[t]:a=null;else if("[object RegExp]"===Object.prototype.toString.call(e)){var r=e.exec(o.value);null!=r&&(s=(a=r.index)+r[0][t])}if(void 0!==a){if(i){var c=this[0].createTextRange();c.collapse(!0),c.moveStart("character",a),c.moveEnd("character",s-a),c.select()}else this[0].selectionStart=a,this[0].selectionEnd=s;return this[0].focus(),this}if(i){var l=document.selection;if("textarea"!=this[0].tagName.toLowerCase()){var u=this.val();(g=l.createRange().duplicate()).moveEnd("character",u[t]);var d=""==g.text?u[t]:u.lastIndexOf(g.text);(g=l.createRange().duplicate()).moveStart("character",-u[t]);var h=g.text[t]}else{var g,p=(g=l.createRange()).duplicate();p.moveToElementText(this[0]),p.setEndPoint("EndToEnd",g);h=(d=p.text[t]-g.text[t])+g.text[t]}}else d=o.selectionStart,h=o.selectionEnd;var f=o.value.substring(d,h);return{start:d,end:h,text:f,replace:function(e){return o.value.substring(0,d)+e+o.value.substring(h,o.value[t])}}}}(jQuery,"length")},11711:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.nocaptcha={init:function(e,t){var n=['<div class="popup captcha-popup lightbox-panel" style="display: block; text-align: left;">','<div class="popup-close">',$("<a>",{title:__tr(["закройте это всплывающее окно (или нажмите Esc)"], undefined, "ru", []),text:"×"}).prop("outerHTML"),"</div>",e,"</div>"].join("");$("body").loadPopup({target:$("body"),html:n,lightbox:!0,loaded:function(e){!function(e,t){var n=e.find("form:first");StackExchange.helpers.enableSubmitButton(n),n.submit((function(){return StackExchange.helpers.disableSubmitButton(n),n.find('input[type="submit"]').addSpinnerAfter(),$.ajax({url:"/nocaptcha",type:"POST",dataType:"json",data:n.serialize(),success:function(a){a.captchaError?(StackExchange.helpers.removeSpinner(),StackExchange.helpers.enableSubmitButton(n),n.find(".form-error").html(a.captchaError),Recaptcha.reload()):(e.find(".popup-close a").click(),t(a))},error:function(){StackExchange.helpers.removeSpinner(),StackExchange.helpers.enableSubmitButton(n),StackExchange.helpers.showErrorMessage(n,__tr(["При отправке контрольного изображения возникла ошибка"], undefined, "ru", []))}}),!1}))}(e,t)}})}}},85057:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.gps=function(){if(StackExchange.gps&&StackExchange.gps.inited)return StackExchange.gps;var e={};function t(){return StackExchange&&StackExchange.options&&StackExchange.options.site&&StackExchange.options.site.routePrefix&&StackExchange.options.site.routePrefix.length?StackExchange.options.site.routePrefix:""}function n(e,t,n,a){$(e).find(t).each((function(e){$(this).addClass("js-gps-track").data("gps-track",n+"({ position:"+(e+1)+a+" })")}))}function a(e){l("bindTrackClicks bound {0} elements in {1}",$(e||document).find(".js-gps-track").off("click.gps").one("click.gps",(function(){var e=$.trim($(this).data("gps-track"));if(e)for(var t=function(e){for(var t=[],n=e.match(/([a-z._-]+)(\([^)]+\))?/gi),a=0;a<n.length;a++){var i=n[a];if(i.indexOf("{")<0)t.push([i,{}]);else{for(var s=i.match(/([a-z._-]+)\s*\(\s*\{([^}]+)\}\s*\)/i)||[],o=s[1],r=($.trim(s[2])||"").match(/[^,]+/gi)||[],c={},l=0;l<r.length;l++){var u=r[l],d=u.indexOf(":"),h=$.trim(u.substr(0,d)),g=p($.trim(u.substr(d+1)));c[h]=g}t.push([o,c])}}return t;function p(e){if("true"===e)return!0;if("false"===e)return!1;if("'"===e[0]||'"'===e[0])return e.substring(1,e.length-1);var t=parseFloat(e);return isNaN(t)?e:t}}(e),n=0;n<t.length;n++){var a=t[n];StackExchange.gps.track(a[0],a[1],!0)}})).length,e||"document")}function i(n){var a=function(){var e=o(),t=localStorage[e];return t?JSON.parse(t):[]}();if(a.length>0){for(var i=(new Date).getTime(),s=[],r=0;r<a.length&&s.length<20;r++){var u=a[r],d=i-u.now;d<0||d>36e5?c(u):s.push(u)}s.length>0?function(n,a){$.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var s=JSON.stringify(n[i]);e[s]&&(n.splice(i,1),i--)}for(i=0;i<n.length;i++){s=JSON.stringify(n[i]);e[s]=!0}var o=JSON.stringify(n);if(navigator&&navigator.sendBeacon)try{l("sending (beacon): "+o);var r=t()+"/gps/event";if(navigator&&navigator.sendBeacon(r,o)){for(i=0;i<n.length;i++){c(n[i]);s=JSON.stringify(n[i]);delete e[s]}return void(a&&a())}}catch(e){l(e)}l("sending (AJAX): "+o),$.ajax({type:"POST",url:"/gps/event",data:{data:o},success:function(e,t,a){for(var i=0;i<n.length;i++)c(n[i])},complete:function(){for(var t=0;t<n.length;t++){var i=JSON.stringify(n[t]);delete e[i]}a&&a()}})}(s,n):n&&n()}}function s(e,t,n,a){r({evt:e,properties:t||{},now:(new Date).getTime()}),navigator&&navigator.sendBeacon&&(n=!1),n?(a&&a(),window.setTimeout(i,1e4)):i(a)}function o(){return"gps-pending"+t()}function r(e){var t;(t=e)&&StackExchange.options&&StackExchange.options.user&&(t.properties&&!t.properties.user_type&&(t.properties.user_type=StackExchange.options.user.user_type),!t.ab&&StackExchange.options.user.ab&&(t.ab=StackExchange.options.user.ab));var n,a=o(),i=localStorage[a];if(i){var s=JSON.parse(i);s.push(e),n=JSON.stringify(s)}else n=JSON.stringify([e]);l("addToPending "+JSON.stringify(e)),localStorage[a]=n}function c(e){var t=o(),n=localStorage[t];if(n){for(var a=JSON.parse(n),i=JSON.stringify(e),s=-1,r=0;r<a.length;r++){if(i==JSON.stringify(a[r])){s=r;break}}-1!=s&&(a.splice(s,1),0!=a.length?localStorage[t]=JSON.stringify(a):localStorage.removeItem(t))}}function l(e){if((StackExchange.options&&StackExchange.options.enableLogging||$.cookie("devlog"))&&"string"==typeof e){if(arguments.length>1){var t=Array.prototype.slice.call(arguments,1);e=String.prototype.formatUnicorn.apply(e,t)}console.log("gps: "+e)}}return{inited:!1,init:function(e){return!!StackExchange.gps.inited||(StackExchange.gps.inited=!0,e&&function(){try{if(!window.localStorage)return!1;if(window.localStorage["gps-probe"]="1","1"!=window.localStorage["gps-probe"])return!1;window.localStorage.removeItem("gps-probe")}catch(e){return!1}return!0}()?(StackExchange.gps.sendPending=i,StackExchange.gps.track=s,StackExchange._gps_track&&($.each(StackExchange._gps_track,(function(e,t){r(t)})),delete StackExchange._gps_track),i(),n(".tagged-questions-page, .questions-page, .tags-page",".js-gps-related-tags .post-tag","related_tags.click",", item_type:1"),n(".question-page",".js-gps-related-questions .spacer","related_questions.click"),n(".question-page .post-taglist",".post-tag","question_tags.click",", location:1"),n(".question-page #sidebar .tagged",".post-tag","question_tags.click",", location:2"),a(),!0):(StackExchange.gps.track=function(e,t,n,a){a&&a()},delete StackExchange._gps_track,!1))},bindTrackClicks:a,track:StackExchange.gps.track,sendPending:StackExchange.gps.sendPending,trackOutboundClicks:function(e,t){$(e).on("click",t+" a[href]:not(.question-hyperlink, .answer-hyperlink)",(function(){var e=$(this).attr("href");StackExchange.helpers.isInNetwork(e)||("undefined"==typeof ga?l("outbound link clicked "+e):ga("send","event","outbound","click",e,{useBeacon:!0}))}))}}}()},1289:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.openid=function(){"use strict";function e(e,t){return e?(t&&$(e).data("ssrc",t),$(e).data("ssrc")):"unknown"}function t(t,n){var a=e(n);t&&(StackExchange.gps.track("openid.click",{openid_provider:t,location:a},!0),StackExchange.gps.track("signup.openid.click",{openid_provider:t,location:a},!0)),StackExchange.gps.track("signup.start",{openid_provider:t,location:a,tid:StackExchange.options.user.tid},!0)}var n=!1;function a(){n||(n=!0,Stacks.addController("signup-modal",{targets:["form","oauthVersion","oauthServer"],connect:function(){var e=$(this.element);StackExchange.gps.bindTrackClicks(e),StackExchange.ga.bindHandlers(e)},signUp:function(e){e.preventDefault(),this.oauthServerTarget.value=e.currentTarget.getAttribute("data-oauthserver"),this.oauthVersionTarget.value=e.currentTarget.getAttribute("data-oauthversion")||"2.0",i(function(){this.formTarget.submit()}.bind(this))()},linkClick:function(e){e.preventDefault();var t=e.currentTarget.href;i((function(){StackExchange.navPrevention.stop(),window.location=t}))()}}))}function i(e){return function(){StackExchange.using("editor",(function(){StackExchange.cardiologist.ensureDraftSaved(e)}))}}return{initPostLogin:function(n,a,s){var o=decodeURIComponent(a),r="unknown";s&&s.length?r=s:(0===o.indexOf("/questions/")&&(r="question_page"),"/questions/ask"===o&&(r="question_ask"));var c=$(n);e(c,r),c.removeClass("dno"),c.find(".google-login").click((function(){t("Google",c),function(t){t.find(".ssrc").val(e(t)),t.find(".use-google").val("true"),t.find(".use-facebook").val(""),t.find(".use-github").val(""),t.find(".js-submit-openid").click()}(c)})),c.find(".facebook-login").click((function(){t("Facebook",c),function(t){t.find(".ssrc").val(e(t)),t.find(".use-facebook").val("true"),t.find(".use-google").val(""),t.find(".use-github").val(""),t.find(".js-submit-openid").click()}(c)})),c.find(".github-login").click((function(){t("GitHub",c),function(t){t.find(".ssrc").val(e(t)),t.find(".use-google").val(""),t.find(".use-facebook").val(""),t.find(".use-github").val("true"),t.find(".js-submit-openid").click()}(c)})),c.find(".stackexchange-login").click(i((function(){t("Stack Exchange",c),StackExchange.navPrevention.stop(),window.location="/users/signup?ssrc="+encodeURIComponent(r)+"&returnUrl="+encodeURIComponent(o)}))),c.find(".js-submit-openid").click((function(){!function(t,n){var a=t.find(".use-facebook").val(),s=t.find(".use-google").val(),o=t.find(".use-github").val();i((function(){var i=(!!StackExchange.options.site.isChildMeta?StackExchange.options.site.parentUrl:"")+"/users/signup?returnurl="+encodeURIComponent(n),r=$('<form method="post" action="'+i+'"></form>'),c=$('<input type="hidden" name="oauth_version" />'),l=$('<input type="hidden" name="oauth_server" />');r.append(c),r.append(l),c.val("2.0"),a?l.val("https://www.facebook.com/v2.0/dialog/oauth"):s?l.val("https://accounts.google.com/o/oauth2/auth"):o&&l.val("https://github.com/login/oauth/authorize"),r.append("<input type='hidden' name='fkey' value='"+StackExchange.options.user.fkey+"' />"),$('<input type="hidden" name="ssrc" />').val(e(t)).appendTo(r),StackExchange.navPrevention.stop(),r.hide().appendTo("body").submit()}))()}(c,o)}))},showLoginModal:function(){return a(),StackExchange.helpers.showModal.apply(StackExchange.helpers,arguments)}}}()},97953:()=>{var e,t,n;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.UniversalAuth=(e=1,t=1e4,n=!1,{redirectOnCompletion:function(e,a){if(n)window.location.replace(e);else{var i,s=0;i=setInterval((function(){if(n)return window.location.replace(e),void clearInterval(i);var o=s<t,r=s<5e4,c=(s+=200)>=5e4;o&&s>=t&&a&&a(),r&&c&&clearInterval(i)}),200)}},performAuth:function(){UniversalAuth.enabled()&&($.cookie("clear-ic")&&$(document).ready((function(){var e=$("<img/>").attr({style:"display:none",src:StackExchange.settings.intercom.hostBaseUrl+"/intercom/logout.gif?appId="+StackExchange.settings.intercom.appId,crossOrigin:"use-credentials"});$("#footer").append(e),$.cookie("clear-ic",null,{path:"/"})})),null!==$.cookie("uauth")&&($.post("/users/login/universal/request",(function(t,a,i){var s=[];$.each(t,(function(t,a){var i="//"+a.Host+"/users/login/universal.gif?authToken="+encodeURIComponent(a.Token)+"&nonce="+encodeURIComponent(a.Nonce);$(document).ready((function(){var t=$("<img/>").attr({style:"display:none",src:i,crossOrigin:"use-credentials"});s.push(t),t.one("load",(function(){var a=t[0].width,i=t[0].height;if(2===a&&2===i&&e>0&&(e--,!$.cookie("uauth"))){var o=new Date,r=new Date(o.getTime()+3e5);$.cookie("uauth","true",{path:"/",domain:document.domain,expires:r}),s=null,setTimeout((function(){UniversalAuth.performAuth()}),10)}!function(){if(null===$.cookie("uauth")&&s){for(var e=0;e<s.length;e++)if(!s[e][0].complete)return;n=!0}}()})),$("#footer").append(t)}))}))}),"json"),$.cookie("uauth",null,{path:"/",domain:document.domain})))},enabled:function(){return!0}})},43745:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.ready((function(){if(StackExchange.options.user.isAnonymous){var e=/\bfkey=/i;$(document).ajaxSend((function(n,a,i){"post"===i.type.toLowerCase()&&(e.test(i.url)||e.test(i.data))&&t()})),$(document).on("submit","form",(function(e){var n=$(this);"post"===(n.attr("method")||"").toLowerCase()&&n.find("input[name='fkey']").length&&t()}))}function t(){try{$.cookie("fkey",StackExchange.options.user.fkey,{path:"/",expires:1/144})}catch(e){}}}))},84653:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.loadJqueryUi=function(){var cssLink=StackExchange.settings.paths.jQueryUICSSPathOverride,jsLink=StackExchange.settings.paths.jQueryUIJSPathOverride;if(cssLink||(cssLink="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/themes/smoothness/jquery-ui.css"),jsLink||(jsLink="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"),$.ui)return $.Deferred().resolve();$("<link>").attr({href:cssLink,rel:"stylesheet",type:"text/css",media:"all"}).appendTo("head");var result=$.Deferred(),locale=StackExchange.options.locale,datepickerLanguageGetter,datepickerLanguageScript;return $.ajaxSetup({cache:!0}),"en"!==locale&&(datepickerLanguageGetter=$.ajax({url:"/Content/Js/third-party/jquery-ui/datepicker-"+locale+".js",dataType:"text",type:"GET"}).done((function(e){datepickerLanguageScript=e}))),$.when(datepickerLanguageGetter||$.Deferred().resolve(),$.getScript(jsLink)).done((function(){eval(datepickerLanguageScript),result.resolve()})),$.ajaxSetup({cache:!1}),result.promise()},StackExchange.patchJqueryUiForTouch=function(){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(65311),__webpack_require__(65311)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(e){if(e.support.touch="ontouchstart"in document||"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,e.support.touch&&e.ui.mouse){var t,n=e.ui.mouse.prototype,a=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(e){var n=this;this._startedMove=e.timeStamp,n._startPos=s(e),!t&&n._mouseCapture(e.originalEvent.changedTouches[0])&&(t=!0,n._touchMoved=!1,o(e,"mouseover"),o(e,"mousemove"),o(e,"mousedown"))},n._touchMove=function(e){t&&(this._touchMoved=!0,o(e,"mousemove"))},n._touchEnd=function(e){if(t){o(e,"mouseup"),o(e,"mouseout");var n=e.timeStamp-this._startedMove;if(!this._touchMoved||n<500)o(e,"click");else{var a=s(e);Math.abs(a.x-this._startPos.x)<10&&Math.abs(a.y-this._startPos.y)<10&&(this._touchMoved&&"stylus"!==e.originalEvent.changedTouches[0].touchType||o(e,"click"))}this._touchMoved=!1,t=!1}},n._mouseInit=function(){var t=this;t.element.on({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),a.call(t)},n._mouseDestroy=function(){var t=this;t.element.off({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t)}}function s(e){return{x:e.originalEvent.changedTouches[0].pageX,y:e.originalEvent.changedTouches[0].pageY}}function o(e,t){if(!(e.originalEvent.touches.length>1)){e.cancelable&&e.preventDefault();var n=e.originalEvent.changedTouches[0],a=document.createEvent("MouseEvents");a.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(a)}}})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}},45672:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.processTimings=function(){return function(){if(!(StackExchange.options.timingsGuid&&window.performance&&window.performance.timing&&window.performance.getEntriesByType))return;var t=[],n=[],a=!1,i=function(i){for(var s=0;s<n.length;s++)n[s].cancel();if(!a){a=!0;var o=$.extend(e(window.performance.timing,!1),{guid:StackExchange.options.timingsGuid,Info:StackExchange.options.timingsInfo,fkey:StackExchange.options.user.fkey,subresources:t.map((function(t){return e(t,!0)}))}),r=JSON.stringify(o);if(navigator&&navigator.sendBeacon&&-1===location.search.indexOf("__debug=1"))try{var c="/_/client-timings";StackExchange.options.site&&StackExchange.options.site.routePrefix&&StackExchange.options.site.routePrefix.length&&(c=StackExchange.options.site.routePrefix+c);var l=new Blob([r],{type:"application/json"});if(navigator&&navigator.sendBeacon(c,l))return}catch(e){}i||$.ajax({url:"/_/client-timings",type:"POST",contentType:"application/json; charset=utf-8",data:r})}},s=StackExchange.helpers.DelayedReaction(i,StackExchange.settings.monitoring.clientTimingsDebounceTimeout,{sliding:!0});n.push(s);var o=StackExchange.helpers.DelayedReaction(i,StackExchange.settings.monitoring.clientTimingsAbsoluteTimeout);o.trigger(),n.push(o);var r={},c=window.setInterval((function(){for(var e=window.performance.getEntriesByType("resource"),n=!1,a=0;a<e.length;a++)if(!r[a]){var i=e[a];t.push(i),n=!0,r[a]=!0}n&&s.trigger()}),50);n.push({cancel:function(){c&&(window.clearInterval(c),c=null)}}),window.performance.onresourcetimingbufferfull=function(){window.performance.clearResourceTimings(),r={}},$(window).unload((function(){i(!0)}))};function e(e,t){var n={};for(var a in t=t||e.name||!1,e)if("toJSON"!==a&&"entryType"!==a)if(t){if("subresources"===a)continue;var i=Math.round(e[a]);n[a]=i||e[a]}else 0!==e[a]&&(n[a]=0===e[a]?null:e[a]-e.navigationStart);return n}}()},86458:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.showFlashMessageIfAny=function(){var e="flash-message-json",t=$.cookie(e);if(t)try{$.cookie(e,null,{path:"/",domain:document.domain});var n=decodeURIComponent(t.replace(/[+]/g," ")),a=JSON.parse(n);switch(StackExchange.options.enableLogging&&console.log("flash message: showing "+n),a.position){case"toast":StackExchange.helpers.showToast(a.message,{type:a.type,transient:a.transient,transientTimeout:a.transientTimeout});break;case"notice":StackExchange.helpers.showStacksNotice(a.message,a.type);break;default:StackExchange.helpers.showBannerMessage(a.message,a.type)}}catch(e){}}},74010:()=>{var e,t;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.prepareEditor=(e=function(e){setTimeout((function(){var t=e.useStacksEditor?"stacksEditor":"editor";e.useStacksEditor||styleCode.initializeSpoilers(),StackExchange[t].initIfShown(e)}),1)},t=function(e){var t=!1;$("#wmd-input, #title, #tagnames, #edit-comment, #m-address, #display-name, .js-fake-stacks-editor").one("focus click keydown",(function(){t||(t=!0,e())}))},function(n){n.onDemand?n.useStacksEditor?t((function(){$.when(StackExchange.using("highlightjs",$.noop),StackExchange.using("stacksEditor",$.noop)).then((function(){e(n)}))})):function(n){for(var a=n.postfix||"",i="bold-button italic-button spacer1 link-button quote-button code-button image-button spacer2 olist-button ulist-button heading-button hr-button spacer3 undo-button redo-button".split(" "),s=$('<ul id="wmd-button-row'+a+'" class="wmd-button-row" />').appendTo(".wmd-button-bar"),o=0,r=0;r<i.length;r++){var c=i[r],l=/spacer/.test(c),u=$("<li id='wmd-"+c+a+"' />").prop("className","wmd-"+(l?"spacer":"button")).css("left",25*r).appendTo(s);$("<span />").css("background-position",o+"px -20px").appendTo(u),l||(o-=20)}var d=document.createElement("li");d.className="wmd-spacer wmd-spacer-max",s.append(d),t((function(){s.addSpinner({float:"right"}),StackExchange.using("editor",(function(){s.remove(),n.autoShowMarkdownHelp&&(n.immediatelyShowMarkdownHelp=!0),e(n)}))}))}(n):n.useStacksEditor?$.when(StackExchange.using("highlightjs",$.noop),StackExchange.using("stacksEditor",$.noop)).then((function(){e(n)})):StackExchange.using("editor",(function(){e(n)}))})},92737:()=>{var e;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.Auth={addOrUpdateError:e=function(e,t){for(var n=!1,a=0;a<e.length;a++)if(e[a].id==t.id){t.changed=e[a].message==t.message,e[a].message=t.message,n=!0;break}n||(t.changed=!0,t.index>=e.length?e.push(t):e.splice(t.index,0,t))},passwordStrengthValidation:function(t,n,a){var i=t.val(),s=/[a-z]/.test(i),o=/[A-Z]/.test(i),r=/\d/.test(i),c=0;if(s&&c++,o&&c++,r&&c++,/(_|[^\w\d])/.test(i)&&c++,2===c&&i.length>=15)return a(n,"pw-weak",t),void a(n,"pw-short",t);var l=$("<span><p>"+__tr(["Пожалуйста, добавьте что-либо из перечисленного ниже, чтобы повысить надежность пароля:$pEnd$ $listStart$ $char$ буквы $itemEnd$ $num$ цифры $itemEnd$ $listEnd$"], {pEnd: "</p>",listStart: "<ul>",listEnd: "</ul>",itemEnd: "</li>",char: '<li id="ch">',num: '<li id="num">'}, "ru", [])+"</span>");(s||o)&&r?a(n,"pw-weak",t):c<3?((s||o)&&l.find("#ch").remove(),r&&l.find("#num").remove(),e(n,{id:"pw-weak",index:1,attachTo:t,message:l})):a(n,"pw-weak",t);var u=t.val().length;u<8?e(n,{id:"pw-short",index:2,attachTo:t,message:__tr(["Должен содержать как минимум ещё $remaining$ символ.","Должен содержать как минимум ещё $remaining$ символа.","Должен содержать как минимум ещё $remaining$ символов."], {remaining: 8 - u}, "ru", ["remaining"])}):a(n,"pw-short",t)}}},20344:()=>{var e,t;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.Hero=(e={name:null,version:null},t=function(e){return[e.ld].concat(e.d).join("!")},{init:function(t,n){e.name=t,e.version=n},dismiss:function(){var n="hero-dismissed",a={ld:"",d:[]},i=$.cookie(n);if(i){var s=i.split("!");s.shift(),a.d=s}a.ld=(new Date).getTime();var o=e.name+"_"+e.version,r=!0;for(var c in a.d)if(a.d.hasOwnProperty(c)&&a.d[c].split("_")===e.name){a.d[c]=o,r=!1;break}r&&a.d.push(o),$.cookie(n,t(a),{path:"/",expires:365})}})},12802:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.checklist=void $(document).on("click",".js-toggle-completed-requirements",(function(e){var t=$(e.target),n=t.closest(".js-checklist"),a=t.hasClass("is-visible"),i=t.data("preference");(function(e,t,n){return $.post(e,{fkey:StackExchange.options.user.fkey,preference:t,hideCompletedOrDismiss:n})})(t.data("url"),i,a).always((function(){n.find(".js-requirement.is-finished").closest("li").toggleClass("dno"),t.toggleClass("is-visible is-hidden").text(a?__tr(["Show all items"], undefined, "ru", []):__tr(["Hide completed items"], undefined, "ru", []))}))}))},75556:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.stacksValidation=function(){function e(e){this.hideIcons=!1,this.$input=e,this.$container=e.closest(".js-stacks-validation"),this.$container.length?(this.$message=this.$container.find(".js-stacks-validation-message"),this.messages=[]):this.invalid=!0}function t(e){return e.html}function n(e){return e.type}e.prototype={_updateMessages:function(){var e;(this.$message.empty().toggleClass("d-none",!this.messages.length),this.messages.length)&&(e=1===this.messages.length?this.messages[0].html:"<ul><li>"+this.messages.map(t).join("</li><li class='mt8'>")+"</li></ul>",this.$message.html(e).find("a").attr("target","_blank"))},_updateIcon:function(){if(this.$container.find(".js-stacks-validation-icon").remove(),this.messages.length&&!this.hideIcons){var e=this.highestType();Svg[a[e]].With("s-input-icon js-stacks-validation-icon").insertAfter(this.$input)}},_updateClass:function(){this.$container.removeClass("has-error has-warning has-success"),this.messages.length&&this.$container.addClass("has-"+this.highestType())},_update:function(){this._updateMessages(),this._updateIcon(),this._updateClass()},highestType:function(){return this.messages.map(n).reduce((function(e,t){return"error"===e||"error"===t?"error":"warning"===e||"warning"===t?"warning":"success"}))},hasType:function(e){return this.messages.some((function(t){return t.type===e}))},add:function(e,t){this.messages.some((function(n){return n.type===e&&n.html===t}))||(this.messages.push({type:e,html:t}),this._update())},addText:function(e,t){this.add(e,$("<span>").text(t).html())},clear:function(e){this.messages=e?this.messages.filter((function(t){return t.type!==e})):[],this._update()}};var a={error:"AlertCircle",warning:"Alert",success:"Checkmark"};return{handlerFor:function(t){var n=t.data("stacks-validation-handler");return n||(n=new e(t),t.data("stacks-validation-handler",n)),n.invalid?null:n}}}()},63972:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},Stacks.addController("se-char-counter",{targets:["field","output"],connect:function(){$(this.fieldTarget).charCounter({min:+(this.data.get("min")||"0"),max:+(this.data.get("max")||"0"),target:$(this.outputTarget),setIsValid:this.setIsValid.bind(this)})},setIsValid:function(e){var t="data-is-valid-length",n=$(this.fieldTarget);"true"!==this.data.get("allow-empty")||n.val()||(e=!0);var a=e.toString();n.attr(t)!==a&&(n.attr(t,a),this.triggerEvent("validated"))}})},9898:()=>{var e,t,n,a;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},a=function(){e=t=null,$("body").removeClass("c-move")},Stacks.addController("se-draggable",{targets:["handle"],connect:function(){if(this.hasHandleTarget){var i=$(this.element),s=$(this.handleTarget);s.hasClass("c-move")||s.addClass("c-move"),s.unbind("mousedown").bind("mousedown",(function(n){i.css({minWidth:i.outerWidth()});var a=i.offset();t={x:a.left-n.pageX,y:a.top-n.pageY};var s=(e=i).offset();e.offset(s).offset(s),$("body").addClass("c-move"),n.preventDefault()})),n||(n=!0,$(document).on("mousemove",(function(n){if(e){e.removeClass("responsively-horizontally-centered-legacy-popup");var a=n.pageY+t.y,i=n.pageX+t.x;e.offset({top:a,left:i})}})).on("keypress",a).on("mouseup",a))}}})},43796:(e,t,n)=>{"use strict";function a(e,t,n){window.open(e,t,n)||(window.location.href=e)}function i(e,t,n){t+="="+(n=void 0!==n?n:"1");var a=e.indexOf("?"),i=e.indexOf("#");return-1==a?-1==i?e+"?"+t:e.substring(0,i)+"?"+t+e.substring(i):-1==i?e+"&"+t:e.substring(0,i)+"&"+t+e.substring(i)}n.r(t);const s=function(e,t,n,s){t=i(t,"sfb",s),e.click((function(){a("https://www.facebook.com/sharer.php?u="+encodeURIComponent(t)+"&ref=fbshare&t="+encodeURIComponent(n),"sharefacebook","toolbar=1,status=1,resizable=1,scrollbars=1,width=626,height=436")}))},o=function(e,t,n,s){t=i(t,"stw",s),n.length>257&&(n=n.substring(0,254)+"..."),e.click((function(){a("https://twitter.com/share?url="+encodeURIComponent(t)+"&ref=twitbtn&text="+encodeURIComponent(n),"sharetwitter","toolbar=1,status=1,resizable=1,scrollbars=1,width=800,height=526")}))},r=function(e,t,n,s){var o,r;o=(r=t.match(/^.*:\/\/stackoverflow\.com\/[qa]\/(\d+)(?:\/\d+)?$/))?"{% stackoverflow {postId} %}".formatUnicorn({postId:r[1]}):(r=t.match(/^.*:\/\/([a-z]*(?:\.meta)?\.stackoverflow)\.com\/[qa]\/(\d+)(?:\/\d+)?$/))?"{% stackexchange {postId} {host} %}".formatUnicorn({postId:r[2],host:r[1]}):(r=t.match(/^.*:\/\/(([a-z0-9]*(?:\.meta)?)\.stackexchange\.com)\/[qa]\/(\d+)(?:\/\d+)?$/))?"{% stackexchange {postId} {host} %}".formatUnicorn({postId:r[3],host:r[2]||r[1]}):(r=t.match(/^.*:\/\/((?:meta\.)?[a-z0-9]*)\.(?:com|net|org)\/[qa]\/(\d+)(?:\/\d+)?$/))?"{% stackexchange {postId} {host} %}".formatUnicorn({postId:r[2],host:r[1]}):i(t,"sdv",s),e.click((function(){a("https://dev.to/new?prefill=---%0Atitle%3A%20{title}%0Apublished%3A%20true%0A---%0A%0A{body}".formatUnicorn({title:encodeURIComponent(n),body:encodeURIComponent(o)}),"sharedev","toolbar=1,status=1,resizable=1,scrollbars=1,width=800,height=526")}))};var c,l;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},c=0,l=!1,Stacks.addController("se-share-sheet",{get $el(){return $(this.element)},get controlId(){var e=this.$el.attr("aria-controls");return e||(e="se-share-sheet-"+c++,this.$el.attr("aria-controls",e)),e},get $sheet(){var e=this.controlId,t=$("#"+e);return 0===t.length&&(t=this.generateSheet(e),this.$el.after(t),StackExchange.gps&&StackExchange.gps.bindTrackClicks&&StackExchange.gps.bindTrackClicks(t)),t},get location(){return+this.data.get("location")||0},get copyLinkGpsTrackAction(){return this.data.get("gps-track-action")||""},initialize:function(){var e=this.$el;function t(t,n){var a=e.attr(t)||"";-1===a.indexOf(n)&&e.attr(t,a+" "+n)}this.updateSheet(!1),t("data-action","s-popover#toggle"),t("data-action",this.identifier+"#preventNavigation"),t("data-action","s-popover:show->"+this.identifier+"#willShow"),t("data-action","s-popover:shown->"+this.identifier+"#didShow"),t("data-controller","s-popover")},generateSheet:function(e){var t=$('<div class="s-popover z-dropdown s-anchors s-anchors__default" style="width: unset; max-width: 28em;"><div class="s-popover--arrow"></div></div>').attr("id",e).append('<div><span class="js-title fw-bold"></span> <span class="js-subtitle"></span></div>').append('<div class="my8"><input type="text" class="js-input s-input wmn3 sm:wmn-initial" readonly /></div>').append('<div class="d-flex jc-space-between ai-center mbn4"><button class="js-copy-link-btn s-btn s-btn__link js-gps-track" data-gps-track="'+this.copyLinkGpsTrackAction+'"></button><a href="#" rel="license" class="js-license s-block-link w-auto d-none" target="_blank"></a><div class="js-social-container d-none"></div></div>').insertAfter($(this.element));return t.find(".js-copy-link-btn").text(__tr(["Скопировать ссылку"], undefined, "ru", [])).click(this.copy.bind(this)),t.find(".js-input").on("copy",this.didCopy.bind(this)),t},willShow:function(){this.updateSheet(!0)},didShow:function(){var e=this.$sheet.find(".js-input");setTimeout((function(){e.focus().select()}));var t=this.location;t&&StackExchange.gps.track("share.show",{location:t})},copy:function(){var e=this;this.tryCopy().then((function(){StackExchange.helpers.showToast($("<span>").text(__tr(["Ссылка скопирована в буфер."], undefined, "ru", [])),{transientTimeout:3e3,type:"success"}),e.didCopy()}),(function(){StackExchange.helpers.showToast($("<span>").text(__tr(["Could not copy link to clipboard."], undefined, "ru", [])),{transientTimeout:5e3,type:"danger"})}))},didCopy:function(){if(!l){var e=this.location;e&&StackExchange.gps.track("share.click",{location:e,service:6})}},tryCopy:function(){var e,t=this.$sheet.find(".js-input");if(navigator.clipboard)return navigator.clipboard.writeText(t.val());t.focus().select(),l=!0;try{e=document.execCommand("copy")}catch(t){e=!1}l=!1;var n=$.Deferred();return e?n.resolve():n.reject(),n.promise()},preventNavigation:function(e){e.ctrlKey||e.metaKey||e.preventDefault()},updateSheet:function(e){this.triggerEvent("update");var t=this.$sheet;t.find(".js-title").text(this.data.get("title")||__tr(["Copy and share this link:"], undefined, "ru", [])),t.find(".js-subtitle").text(this.data.get("subtitle")||""),t.find(".js-input").val(this.element.href);var n=this.data.get("license-url"),a=t.find(".js-license").toggleClass("d-none",!n);if(n){a.attr("href",decodeURIComponent(this.data.get("license-url")));var i=this.data.get("license-name");a.text(i),a.attr("title",__tr(["Текущая лицензия для этого сообщения: $licenseName$"], {licenseName: i}, "ru", []))}t.find(".js-social-container").addClass("d-none").empty();var c=this.data.get("post-type");if(e&&("question"===c||"answer"===c)){var l=(this.data.get("social")||"").split(/\s+/);-1!==l.indexOf("facebook")&&this.addSocialComponent("question"===c,"Facebook",Svg.Facebook.With("native"),__tr(["Share on Facebook"], undefined, "ru", []),2,s),-1!==l.indexOf("twitter")&&this.addSocialComponent("question"===c,"Twitter",Svg.Twitter.With("native"),__tr(["Share on Twitter"], undefined, "ru", []),3,o),-1!==l.indexOf("devto")&&this.addSocialComponent("question"===c,"DEV",Svg.DevTo.With("native"),__tr(["Share on DEV"], undefined, "ru", []),5,r)}},addSocialComponent:function(e,t,n,a,i,s){var o=e?__tr(["Поделиться ссылкой на вопрос в $socialNetwork$"], {socialNetwork: t}, "ru", []):__tr(["Поделиться ссылкой на ответ в $socialNetwork$"], {socialNetwork: t}, "ru", []),r=$("<button>",{class:"s-btn p4",role:"button",title:o,"aria-label":a}).append(n),c=$("#question-header a.question-hyperlink").text(),l=e?c:__tr(["Answer: $title$"], {title: c}, "ru", []);s(r,this.element.href,l,"2");var u=this.location;r.click((function(){u&&StackExchange.gps.track("share.click",{location:u,service:i})})).appendTo(this.$sheet.find(".js-social-container").removeClass("d-none"))}})},69462:()=>{e=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{};var e=e||{};e.realtime=function(){var t,n=null,a={},i=[],s=0,o=[],r=10,c=!1,l=!1,u=!1,d=!1,h=new EventEmitter;function g(){n&&(n.dispose(),n=null)}function p(){if(null!=n&&n.isOpen())for(var e=0,t=o.length;e<t;e++)f("sending "+o[e]),n.send(o[e])}function f(t){(e&&e.options&&e.options.enableLogging||$&&$.cookie&&$.cookie("devlog"))&&console.log("realtime: "+t)}function m(e,t){o.push(e),(t=!1!==t)&&p()}function b(e){f("unsubscribing "+e);var t=$.inArray(e,o);-1!=t&&(o.splice(t,1),null!=n&&n.isOpen()&&n.send("-"+e))}function v(e,t){$(".js-accepted-answer-indicator").each((function(){var n=!t&&$(this).closest(".js-voting-container").data("post-id")===e.answerid;$(this).toggleClass("d-none",!n)}))}function w(t,n,i,s){var o=t+"-"+n;m(o),h.addListener(o,(function(t){f("received (active) on "+o);var r=$.parseJSON(t);i&&!i(r)||(!function(t,n){if(null!=e.options.user.accountId&&e.tagPreferences.isIgnored(t.tags))return;a[t.id]={id:t.id,fetch:!0,index:(new Date).getTime(),siteid:t.siteid,channel:n},$(".js-new-post-activity").remove(),$("#question-mini-list, #questions").prepend(_),$(".tag-sponsorship").length>0&&$("#question-mini-list, #questions").css("margin-top","0px")}(r,n),s&&s(r))}))}var k=function(){var t=Object.keys(i).length;0==t&&$(".js-new-answer-activity").remove();var n=$('<div class="new-answer-activity ta-center bar-sm mb16 js-new-answer-activity">').append($('<a class="d-block py8" href="#">').text(__tr(["$count$ новый ответ на вопрос","$count$ новых ответа на вопрос","$count$ новых ответов на вопрос"], {count: t}, "ru", ["count"])));return n.click((function(){e.realtime.expandAnswers()})),n.find("a").click((function(t){return t.stopPropagation(),e.realtime.expandAnswers(),!1})),n};function S(){$(".js-new-answer-activity").remove(),$("#answers-header").prepend(k)}var x=function(e,t){var n=[],a={};if($(e).each((function(e,t){var i=$(".question[data-questionid="+t+"], .answer[data-answerid="+t+"]");i.length>0&&(n.push(+t),a[+t]=i)})),0===n.length)return $.Deferred().resolve(a);var i="/posts/ajax-load-realtime/{postIdsSemiColonDelimited}?title=true&includeComments={includeComments}".formatUnicorn({postIdsSemiColonDelimited:n.join(";"),includeComments:!!t});return $.ajax({type:"GET",url:i,dataType:"html"}).then((function(e){var n=$(e).filter(".question, .answer").map((function(){var e=$(this),n=+(e.data("questionid")||e.data("answerid")||0),i=a[n];return y(i,e,n,t)})).get();return $.when.apply($,n)})).then((function(){return a}))},y=function(t,n,a,i){var s=t.find(".postcell, .answercell"),o=n.find(".postcell, .answercell").css({opacity:0}),r=t.hasClass("question"),c=$("body").hasClass("question-page"),l=$("h1 a.question-hyperlink"),u=n.data("title"),d=r&&c&&$.trim(l.text())!==u,h=t.find(".js-comments-list"),g=function(e){return e.animate({opacity:0},150)},p=function(e){return e.animate({opacity:1},150)};if(window.history&&c){var f=d?__tr(["$pageTitle$ - $siteName$"], {pageTitle: u,siteName: e.options.site.name}, "ru", []):document.title;window.history.replaceState(window.history.state,f,"#"+a)}return $.when(!d||g(l),!i||g(h),g(s)).then((function(){return t.prop("classList",n.prop("classList")),d&&l.text(u),i&&e.comments.replaceAll(t,n.find(".js-comment")),s.replaceWith(o),styleCode(),$.when(!d||p(l),!i||p(h),p(o))}))};var _=function(){var t=Object.keys(a).length;j(t);var n=$('<div class="js-new-post-activity bg-black-050 bar-sm ta-center my8">').append($('<a class="s-btn d-block" href="#">').text(__tr(["Новая активность в $count$ вопросе","Новая активность в $count$ вопросах","Новая активность в $count$ вопросах"], {count: t}, "ru", ["count"])));return n.click((function(){e.realtime.expandActiveQuestions()})),n.find("a").click((function(t){return t.stopPropagation(),e.realtime.expandActiveQuestions(),!1})),n};function E(e,t){return e.index<t.index?-1:e.index>t.index?1:0}function j(e){var t=document.title.replace(/^\(\d*\*?\) /,"");e>0&&(t="("+e+") "+t),window.setTimeout((function(){$(document).attr("title",t)}),200)}function C(){u=!0,e.notify.show(__tr(["Уведомления отключены из-за неактивности"], undefined, "ru", [])+'<a href=".">'+__tr(["обновить"], undefined, "ru", [])+"</a>"+__tr(["переподключиться"], undefined, "ru", []),312),n.dispose()}function A(){for(var e=$("span.relativetime, span.relativetime-clean"),t=0;t<e.length;t++)if(e[t].title){var n=P(e[t].title);n&&(e[t].innerHTML=n)}}function P(t){if(t){var n=t.match(/^(\d{4}-\d\d-\d\d) (\d\d:\d\d:\d\dZ)/);if(n){var a=n[1]+"T"+n[2],i=new Date(a),s=((new Date).getTime()-i.getTime())/1e3+e.options.serverTimeOffsetSec,o=Math.floor(s/86400);if(!(isNaN(o)||o<0||o>=31))return 0==o&&(s<2&&__tr(["только что"], undefined, "ru", [])||s<60&&(l?__tr(["$seconds$ секунду назад","$seconds$ секунды назад","$seconds$ секунд назад"], {seconds: Math.floor(s)}, "ru", ["seconds"]):__tr(["$seconds$ секунду назад","$seconds$ секунды назад","$seconds$ секунд назад"], {seconds: Math.floor(s)}, "ru", ["seconds"]))||s<120&&(l?__tr(["1 мин. назад"], undefined, "ru", []):__tr(["1 минуту назад"], undefined, "ru", []))||s<3600&&(l?__tr(["$minutes$ минуту назад","$minutes$ минуты назад","$minutes$ минут назад"], {minutes: Math.floor(s / 60)}, "ru", ["minutes"]):__tr(["$minutes$ минуту назад","$minutes$ минуты назад","$minutes$ минут назад"], {minutes: Math.floor(s / 60)}, "ru", ["minutes"]))||s<7200&&(l?__tr(["1 ч назад"], undefined, "ru", []):__tr(["1 час назад"], undefined, "ru", []))||s<86400&&(l?__tr(["$hours$ час назад","$hours$ часа назад","$hours$ часов назад"], {hours: Math.floor(s / 3600)}, "ru", ["hours"]):__tr(["$hours$ час назад","$hours$ часа назад","$hours$ часов назад"], {hours: Math.floor(s / 3600)}, "ru", ["hours"])))}}}return{init:function(t){var a=t.split(","),i=a.length,l=a[s%i],d=e.options.realtime.staleDisconnectIntervalInHours;if("WebSocket"in window){if(n)return;if(n=function(e){var t;return{on:{creationfailed:null,onopen:null,onmessage:null,onclose:null,onerror:null},isOpen:function(){return t&&1===t.readyState},readyState:function(){return t?t.readyState:null},start:function(){if(!t){var n=this.on;try{t=new WebSocket(e)}catch(e){return void(n.creationfailed&&n.creationfailed(e.message))}t.onopen=function(){n.open&&n.open()},t.onclose=function(){n.close&&n.close(),t=null},t.onmessage=function(e){n.message&&n.message(e)},t.onerror=function(){n.error&&n.error(),t=null}}},close:function(){t&&(t.close(),t=null)},dispose:function(){this.close()},send:function(e){t&&t.send(e)},open:function(){}}}(l),null===n)return;n.on.open=function(){if(c||(c=!0),s=0,f("WebSocket opened"),n&&1===n.readyState()){var t="",a=e.options;if(a){t="|";a.routeName&&(t+=a.routeName.toString()),t+="|",a.user&&a.user.userId&&(t+=a.user.userId.toString()),t+="|",a.user&&a.user.accountId&&(t+=a.user.accountId.toString()),t+="|",a.user&&a.user.rep&&(t+=a.user.rep.toString()),t=t+"|"+window.location.host+"|",a.serverTime&&(t+=a.serverTime.toString()),f("analytic: "+(t+="|")),n.send(t)}}p(),h.addListener("hb",(function(e){f("heartbeat received; responding"),n.send(e)})),setInterval(A,6e4),d>0&&setTimeout(C,1e3*d*60*60)},n.on.message=function(e){var t=$.parseJSON(e.data||e);if("realtime-broadcast"===t.action){f("broadcast message - "+t.data);var a=$.parseJSON(t.data).a;"killWebSocket"!==a&&"restartWebSocket"!==a||(f("Applying action: "+a),(u="killWebSocket"===a)?g():n.close())}else"debug-info"==t.action?f(t.data):h.emitEvent(t.action,[t.data])},n.on.close=function(){n=null,f("WebSocket closed"),!u&&s<5&&r>0&&(s++,r--,f("reconnect attempt:"+s+" max retries:"+r),setTimeout((function(){e.realtime.init(t)}),5*Math.random()*60*1e3))},n.on.error=function(){f("WebSocket failed"),g()},n.on.creationfailed=function(e){f("Sockets disabled - "+e),g()},n.start(),o.length>0&&n&&n.open()}},log:f,simulate:function(e){h.emitEvent(e.action,[e.data]),console.dir(h)},expandActiveQuestions:function(){var n=[];for(var i in a)a.hasOwnProperty(i)&&n.push(a[i]);if(0!==n.length){var s=n.sort(E).slice(0,50);$.post("/posts/ajax-load-realtime-list/",{postIdsSemiColonDelimited:s.map((function(e){return e.id})).join(";"),channel:s[0].channel}).done((function(n){for(var a=0;a<s.length;a++){var i=s[a];i.body=n[i.id],i.body&&($("#question-summary-"+i.id).remove(),$(i.body).prependTo("#question-mini-list, #questions").hide().fadeIn())}j(0),null!=e.options.user.accountId&&e.tagPreferences.applyPrefs(!0,t),A(),$(".js-new-post-activity").remove()})),a={}}},expandAnswers:function(){$("#tabs").show(),$(".js-new-answer-activity").remove();var t=$("#answers #answers-header"),n=t.find(".answers-subheader h2"),a=parseInt(n.text())+i.length;isNaN(a)&&(a=i.length),n.text(__tr(["$answerCount$  Ответ","$answerCount$  ответа","$answerCount$  ответов"], {answerCount: a}, "ru", ["answerCount"])),$.ajax({url:"/posts/ajax-load-realtime/{postIdsSemiColonDelimited}".formatUnicorn({postIdsSemiColonDelimited:i.join(";")})}).done((function(n){var a=$('<div class="dno" />').append(n.Html);a.insertAfter(t).fadeIn(400,(function(){a.removeClass("dno"),styleCode(),e.vote.init(n.VotesCastJson),a.find(".answer").each((function(){e.comments.init({post:$(this)})}))}))})),e.question.bindSuggestedEditPopupLinks(),A(),i=[]},subscribeToActiveQuestions:function(e,n,a,i,s,o){t=a,l=s,w(e,n,(function(e){if(i)for(var t=0;t<i.length;t++)if(-1==$.inArray(i[t],e.tags))return!1;return!0}),o)},subscribeToUQL:function(e,n,a,i,s){var o=function(e){return i.noAnswers&&!e.noAnswers?(f("ignoring because has answers"),!1):!(i.hasBounty&&!e.hasBounty)||(f("ignoring because no bounty"),!1)};t=s,0===a.length?w(e,"questions-"+n,!1,o):function(e){var t=[],n=[];return e.forEach((function(e){"or"===e?n.length>0&&(t.push(n),n=[]):e.length>0&&"and"!==e&&n.push(e)})),n.length>0&&t.push(n),t}(a).forEach((function(t){var a=function(e){for(var t=e.length-1;t>=0;t--)if("-"!==e[t][0])return e[t];return null}(t);if(null!==a){var i="questions-"+n+"-tag-"+a;w(e,i,!1,(function(e){if(!o(e))return!1;for(var n=0;n<t.length;n++){var a=t[n];if("-"!==a[0]){if(-1===$.inArray(a,e.tags))return f("ignoring because post does not contain "+a+" in "+i),!1}else{var s=a.substr(1);if(-1!==$.inArray(s,e.tags))return f("ignoring because post contains "+s+" in "+i),!1}}return!0}))}}))},subscribeToQuestion:function(t,n){var a=t+"-question-"+n;m(a),h.addListener(a,(function(t){if(!d){var n=$.parseJSON(t);if(n.acctid!=e.options.user.accountId)switch(f(a+" "+t),n.a){case"score":!function(t){var n=$(".js-voting-container").filter((function(){return $(this).data("post-id")===t.id})).find(".js-vote-count");if(n.data("value")===t.score)return;var a=e.vote.normalizePostScore(t.score);n.data("value",t.score).text(a),0===$(":animated").length&&n.fadeTo("fast",.7).fadeTo("fast",1);e.question.canViewVoteCounts()&&e.vote.bindFetchVoteCounts()}(n);break;case"comment-add":!function(t){if(0!=$("#comment-"+t.commentid).length)return;e.comments.realtimeMessage(t.id)}(n);break;case"answer-add":!function(t){if(0!=$("#answer-"+t.answerid).length)return;if(i.push(t.answerid),e.cardiologist){if(e.cardiologist.isHeartBeating())e.helpers.DelayedReaction(S,5e3).trigger();else S();e.cardiologist.notifiedOfNewAnswer()}}(n);break;case"accept":v(n);break;case"unaccept":v(n,!0);break;case"post-edit":!function(e){var t=$(".question[data-questionid="+e.id+"], .answer[data-answerid="+e.id+"]");if(t.find(".js-new-post-activity[data-postid="+e.id+"]").length>0)return;var n=$('<div class="new-post-activity bar-sm ta-center mb16 js-new-post-activity" data-postid="'+e.id+'">').append($('<a class="d-block py8" href="#">').text(__tr(["Это сообщение было отредактировано "], undefined, "ru", []))),a=0===t.find(".inline-editor").length,i=function(){$(".js-new-post-activity[data-postid="+e.id+"]").remove(),a&&t.off("click",i),0===$("#review-content").length&&x([e.id]),$(document).trigger("refreshEdit",e.id)};a&&t.click(i);n.prependTo(t).find("a").click((function(e){return e.stopPropagation(),i(),!1}))}(n);break;case"post-deleted":!function(t){var n=t.aId||t.qId,a=t.aId?$("#answer-"+t.aId):$("#question");a.css("opacity",.1);var i=$('<div class="realtime-post-deleted-notification" />');i.insertBefore(a);var s=e.options.user.canSeeDeletedPosts?__tr(["Сообщение было удалено — нажмите для обновления страницы"], undefined, "ru", []):__tr(["Сообщение было удалено и более недоступно для просмотра"], undefined, "ru", []);$("<p>").text(s).appendTo(i).click((function(){window.location.reload(!0)})),$(".popup[data-postid="+n+"]").fadeOutAndRemove()}(n)}}}))},unsubscribeToQuestion:function(e,t){b(e+"-question-"+t)},pauseQuestionNotifications:function(e){d=e},subscribeToReputationNotifications:function(t){if(null!=e.options.user.accountId){var n=t+"-"+e.options.user.userId+"-reputation";m(n),h.addListener(n,(function(e){!function(e){var t=$("#hlinks .reputation-score, .links-container .reputation, .js-header-rep");if(t.text()==e.score)return;0==$(":animated").length&&t.fadeTo("fast",.8).fadeTo("fast",1);t.text(e).attr("title",__tr(["ваша репутация: $reputation$"], {reputation: e}, "ru", [])),t.trigger("reputationchange")}(e)}))}},updateRelativeDates:A,subscribeToReviewDashboard:function(e){var t=e+"-review-dashboard-update";m(t),h.addListener(t,(function(e){var t=$.parseJSON(e),n=$('.dashboard-activity[data-review-task="'+t.i+'"]');0==n.find('.dashboard-user[data-user="'+t.u+'"]').length&&(n.find(".dashboard-user:nth-child(6)").remove(),n.css("overflow","hidden"),n.children().css({left:"-44px"}),n.prepend(t.html).children().animate({left:0},(function(){n.css("overflow","visible")})))}))},subscribeToTopBarNotifications:function(t){if(null!=e.options.user.accountId){var n=e.options.user.accountId+"-topbar";m(n),h.addListener(n,(function(t){e.topbar.handleRealtimeMessage(t)}))}},subscribeToCounts:function(e){m(e+"-qcnt-feed"),h.addListener(e+"-qcnt-feed",(function(e){$("div#q-cnt").html(e)})),m(e+"-evc-feed"),h.addListener(e+"-evc-feed",(function(e){$("div#evc-cnt").html(e)})),m(e+"-acnt-feed"),h.addListener(e+"-acnt-feed",(function(e){$("div#a-cnt").html(e)}))},genericSubscribe:function(e,t){h.addListener(e,t),m(e)},genericUnsubscribe:function(e,t){h.removeListener(e,t),b(e)},reloadPosts:x,debug:function(e){n?n.send("debug-"+e):f("not connected")}}}()},35763:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.bindShowMoreHotNetworkQuestions=function(){let e=$("#hot-network-questions"),t=e.find(".js-show-more"),n=e.find(".js-hidden");if(!e.length||!t.length||!n.length)return;let a=$("#mainbar").height(),i=$("#sidebar").height()+550;n.attr("style","visibility:hidden").removeClass("dno");let s=0,o=[];if(n.each(((e,t)=>{let n=$(t).height();o.push(n),s+=n})),a>=i+s)return t.remove(),void n.attr("style","").show();let r=[],c=i;n.each(((e,t)=>{let n=$(t),i=o[e];c+i<=a&&(r.push(n),c+=i)})),n.attr("style","").addClass("dno"),r.forEach((e=>e.show())),t.click((()=>(n.show(),t.remove(),!1)))}},16126:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.mockups={init:function(){StackExchange.externalEditor.init({thingName:"mockup",getIframeUrl:function(e){let t="/plugins/mockups/editor";return e&&(t+="?edit="+encodeURIComponent(e)),t},buttonTooltip:"UI wireframe",onShow:function(e){window.addMockupToEditor=e},onRemove:function(){window.addMockupToEditor=null}})}},StackExchange.schematics={init:function(){let e;StackExchange.externalEditor.init({thingName:"schematic",getIframeUrl:function(e){let t="/plugins/schematics/editor";return e&&(t+="?edit="+encodeURIComponent(e)),t},buttonTooltip:"Schematic",checkSupport:function(){switch(function(){if(!window.postMessage)return 0;const e=document.createElement("div");if(e.innerHTML="<svg/>","http://www.w3.org/2000/svg"!==(e.firstChild&&e.firstChild.namespaceURI))return 0;const t=navigator.userAgent;return/Firefox|Chrome/.test(t)?3:/Apple/.test(navigator.vendor)||/Opera/.test(t)?2:1}()){case 3:return!0;case 2:return confirm("Your browser is not officially supported by the schematics editor; however it has been reported to work. Launch the editor?");case 1:return confirm("Your browser is not officially supported by the schematics editor; it may or may not work. Launch the editor anyway?");default:return alert("Sorry, your browser does not support all the necessary features for the schematics editor."),!1}},onShow:function(t){const n=$("<div class='popup'>").css("z-index",1111).text("Loading editor").appendTo("body").show().addSpinner({marginLeft:5}).center({dy:-200});$("<div style='text-align:right;margin-top: 10px'>").append($("<button>cancel</button>").click((function(){n.remove(),t()}))).appendTo(n),e=function(e){if("https://www.circuitlab.com"!==(e=e.originalEvent).origin)return;e.data||t();const a=$.parseJSON(e.data);if(a&&"success"===a.load)n.remove();else if(a&&a.edit_url&&a.image_url){a.fkey=StackExchange.options.user.fkey;const e=$("<div class='popup'>").css("z-index",1111).appendTo("body").show(),n=function(){e.text("Storing image").addSpinner({marginLeft:5}).center(),$.post("/plugins/schematics/save",a).done((function(n){e.remove(),t(n.img)})).fail((function(t){if(409===t.status){let a="Storing aborted";t.responseText.length<200&&(a=t.responseText),e.text(a+", will retry shortly").addSpinner({marginLeft:5}).center(),setTimeout(n,1e4)}else e.remove(),alert("Failed to upload the schematic image.")}))};n()}},$(window).on("message",e)},onRemove:function(){$(window).off("message",e)}})}},StackExchange.externalEditor={init:function(e){let t=e.thingName,n=function(e){if("function"==typeof e)return e;const t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n="\x3c!-- Begin "+t+"[^>]*? --\x3e\\s*!\\[[^\\]]*\\]\\((http://[^ )]+)[^)]*\\)\\s*\x3c!-- End "+t+" --\x3e";return function(e,t,a,i,s){return e.replace(new RegExp(n,"g"),(function(e,n,r){const c={payload:n.replace(/[^-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]/g,""),pos:o(e,t,r),len:e.length};return-1===c.pos?e:(s.push(c),e+"\n\n"+a+i+"-"+(s.length-1)+"%")}));function o(e,t,n){let a=-1,i=-1;for(;i=t.indexOf(e,i+1),-1!==i;)(a<0||Math.abs(i-n)<Math.abs(i-a))&&(a=i);return a}}}(e.thingFinder||e.thingName),a=e.getIframeUrl,i=e.getDivContent,s=e.buttonTooltip,o=e.onShow,r=e.onRemove||function(){},c=e.editLabel||"edit the above "+t,l=e.checkSupport;StackExchange.MarkdownEditor.creationCallbacks.add((function(e,u){$('<style type="text/css"> .wmd-'+t+"-button span { background-position: 0 0; } .wmd-"+t+"-button:hover span { background-position: 0 -40px; }</style>)").appendTo("head");let d,h,g,p=e.getConverter().hooks,f=$("#wmd-input"+u);function m(n){let s=g||f.caret(),c=f[0].value||"",l=n?n.pos:s.start,u=n?n.len:s.end-s.start,d=c.substring(0,l),h=c.substring(l+u);g=null;let p=null;function m(){StackExchange.helpers.closePopups(p.add(void 0)),r()}const b=function(n,a){if(!n)return setTimeout(m,0),void f.focus();StackExchange.navPrevention.start();let i=void 0===a?('\n\n\x3c!-- Begin {THING}: In order to preserve an editable {THING}, please\n     don\'t edit this section directly.\n     Click the "edit" link below the image in the preview instead. --\x3e\n\n![{THING}]('+n+")\n\n\x3c!-- End {THING} --\x3e\n\n").replace(/{THING}/g,t):a,o=d.replace(/(?:\r\n|\r|\n){1,2}$/,""),r=o+i+h.replace(/^(?:\r\n|\r|\n){1,2}/,""),c=s.start+i.length-d.length+o.length;setTimeout((function(){e.textOperation((function(){f.val(r).focus().caret(c,c)})),m()}),0)};if(a){const e=a(n?n.payload:null);p=$("<iframe>",{src:e})}else if(i){const e=i(n?n.payload:null);p=$(e)}p.addClass("esc-remove").css({position:"fixed",top:"2.5%",left:"2.5%",width:"95%",height:"95%",background:"white","z-index":1001}),$("body").loadPopup({html:p,target:$("body"),lightbox:!0}).done((function(){$(window).resize(),o(b)}))}f.on("keyup",(function(e){const t=e.keyCode||e.charCode;if(8===t||46===t){const e=f.caret().start;f.caret(e,e)}})),p.chain("preConversion",(function(e){const a=(e.match(/%/g)||[]).length,i=f.length&&f[0].value||"";return d=new Array(a+2).join("%"),h=[],n(e,i,d,t,h)})),p.chain("postConversion",(function(e){return e.replace(new RegExp(d+t+"-(\\d+)%","g"),(function(e,n){return"<sup><a href='#' class='edit-"+t+"' data-id='"+n+"'>"+c+"</a></sup>"}))}));const b="The "+t+" editor does not support touch devices.";let v=!1;$("#wmd-preview"+u).on("touchend",(function(){v=!0})).on("click","a.edit-"+t,(function(e){return v?(alert(b),v=!1,!1):(v=!1,l&&!l()||m(h[$(e.target).attr("data-id")]),!1)})),$("#wmd-input"+u).keyup((function(e){e.shiftKey||e.altKey||e.metaKey||!e.ctrlKey||77!==e.which||l&&!l()||m()})),setTimeout((function(){const e=$("#wmd-image-button"+u),n=$("<li class='wmd-button wmd-"+t+"-button' id='wmd-"+t+"-button"+u+"' title='"+s+" Ctrl-M'>").insertAfter(e);let a=!1;$("<span>").appendTo(n).on("touchend",(function(){a=!0})).click((function(){if(a)return alert(b),void(a=!1);a=!1,l&&!l()||m()}))}),0)}))}}},37347:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e,t){if(!StackExchange.settings||!StackExchange.settings.snippets)return;let n=!1;const a=StackExchange.settings.snippets.renderDomain;let i=null;function s(t){return e("<div>").addClass(t)}let o=1;function r(){const e="sif"+o;return o++,e}function c(){return e("<iframe>").attr({name:r(),sandbox:"allow-forms allow-modals allow-scripts",class:"snippet-box-edit snippet-box-result",frameBorder:0})}function l(t){return e("<pre>").addClass("prettyprint-override lang-"+t+" snippet-code-"+t)}function u(t){return e("<a>").text(t)}function d(t,n){return e("<textarea>").attr("name",t).val(n)}function h(t,n,a){return e("<form>").css("display","none").attr({action:t,method:n,target:a})}function g(t,n){return e("<input>").attr({type:"text",name:t,value:n})}function p(){return e('<button type="button" class="s-btn">')}function f(t){return e("<code>").text(t)}function m(o,r){r=r||{},o.each((function(){const o=e(this);let l=o.data("_snippet");if(!l){const f=r.markdownPluginMode;if(l=f?function(){const i={html:null,css:null,js:null,console:!0,hide:!1,babel:null};let s=null,o=null,r=null,c=null,l=null,u=null,p=null,f=null,m=!1,b=!0,v=null,w=null,k=null,S=null,x=null,$=null,y=null,_=null,E=null,j=null;function C(e){j=e}function A(n,a,i){const s="function"==typeof a?a:function(e,t){return a.replace(/\*version\*/g,e).replace(/\*file\*/g,t)},o=s("##version##","##file##").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace("cdnjs\\.cloudflare\\.com","(?:cdnjs\\.cloudflare\\.com|ajax\\.googleapis\\.com)").replace(/##version##/g,"(.*?)").replace(/##file##/g,"(.*?)");let r;function c(){const e=i.getValue().match(o);e&&e.length>2?n.val(e[1]+":"+e[2]):n.val("")}n.change((function(){let t=e(this).val().split(":"),n=t.length>1?t[1]:"";t=t[0];let a=i.getValue(),r=!1;const c=""===t?"":s(t,n);a=a.replace(new RegExp(o,"g"),(function(){return r=!0,c})),a=a.trim(),r?i.setValue(a):""!==t&&(i.setValue(c+"\n"+a),i.save())})),i.on("change",(function(){t.clearTimeout(r),r=t.setTimeout(c,1e3)}))}function P(a){if(s)return s;function i(e,a,i){const s=CodeMirror.fromTextArea(e,{electricChars:!1,smartIndent:!1,lineNumbers:!0,lineWrapping:!0,mode:a,tabSize:2,indentWithTabs:!1,readOnly:!1});let o;return s.on("change",(function(){n=!0,t.clearTimeout(o),o=t.setTimeout((function(){s.save()}),500)})),s.beautify=function(){s.setValue(i(s.getValue().trim(),{indent_size:s.options.tabSize,indent_char:" ",unformatted:["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","address","big","dt","ins","strike","tt"]}))},s}function d(e){return'<script src="https://cdnjs.cloudflare.com/ajax/libs/'+e+'/*version*/*file*"><\/script>'}s=e(j),e(s).find("#snpte-close-button").click((function(t){return StackExchange.helpers.closePopups(e(this).closest(".snippet-modal"),"esc"),t.preventDefault(),!1})),o=s.find("#snpte-jquery-select"),r=s.find("#snpte-d3-select"),c=s.find("#snpte-knockout-select"),l=s.find("#snpte-angular-select"),u=s.find("#snpte-vue-select"),p=s.find("#snpte-react-select"),f=s.find("#snpte-react-dom-select"),m=s.find("#snpte-hide-snippet"),b=s.find("#snpte-show-console"),v=s.find("#snpte-use-babel"),s.find("#snpte-button-run").click((function(){I()})),s.find("#snpte-button-tidy").click((function(){y.beautify(),_.beautify(),E.beautify()})),s.find("#snpte-button-insert").click((function(){StackExchange.helpers.closePopups(e(".snippet-modal"))})),s.find("#snpte-button-reset").click((function(){O()})),a.empty().append(s),w=s.find("#snpte-box-edit-html"),k=s.find("#snpte-box-edit-css"),S=s.find("#snpte-box-edit-js"),$=s.find("#snpte-box-edit-result"),x=$.clone(),CodeMirror.commands.insertTab=CodeMirror.commands.insertSoftTab,CodeMirror.keyMap.default["Shift-Tab"]="indentLess",CodeMirror.commands.indentAuto=function(e){e.beautify()},y=i(w[0],"htmlmixed",html_beautify),_=i(k[0],"css",css_beautify),E=i(S[0],"javascript",js_beautify),A(o,d("jquery"),y),A(r,d("d3"),y),A(c,d("knockout"),y),A(l,d("angular.js"),y),A(u,d("vue"),y),A(p,(function(e,t){return'<script src="https://cdnjs.cloudflare.com/ajax/libs/react/'+e+"/"+t+'"><\/script>\n<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/'+e+"/"+((f.find("option[value^='"+e+"']").attr("value")||"").split(":")[1]||t)+'"><\/script>'}),y),s.find("#snpte-button-extlib").click((function(){const e=prompt(__tr(["Пожалуйста, укажите URL-адрес внешнего JS или CSS файла"], undefined, "ru", []));if(null==e||""==e||""==e.trim())return;const t=y.getValue();if(n(e,".css")){const n='<link href="'+e+'" rel="stylesheet"/>';y.setValue(n+"\n"+t)}else if(n(e,".js")){const n='<script src="'+e+'"><\/script>';y.setValue(n+"\n"+t)}else alert(__tr(["Извините, но данный ресурс указан неверно. Ресурсы должны начинаться с http:// или https://, допустимые расширения: .css, .js"], undefined, "ru", []));function n(e,t){return!(e.length<t.length)&&((0==(e=e.toLowerCase()).indexOf("https://")||0==e.indexOf("http://")||0==e.indexOf("//"))&&e.substr(e.length-t.length,t.length).toLowerCase()==t.toLowerCase())}})),e.each([y,_,E],(function(t,n){n.on("focus",(function(){e(n.getInputField()).parent().parent().parent().children(".js-name").hide()})),n.on("blur",(function(){e(n.getInputField()).parent().parent().parent().children(".js-name").show()}))}))}function I(){z(),G()}function T(e){const t=e.html,a=e.css,s=e.js,o=e.console,r=e.hide,c=e.babel;null!=t&&(i.html=t,w.val(t)),null!=a&&(i.css=a,k.val(a)),null!=s&&(i.js=s,S.val(s)),null!=o&&(i.console=o,!1===o&&b.prop("checked",o)),r&&(i.hide=r,m.prop("checked",!0)),c&&(i.babel=c,v.prop("checked",!0)),y.setValue(t),_.setValue(a),E.setValue(s),n=!1}function O(){w.val(""),k.val(""),S.val(""),o.val(""),r.val(""),c.val(""),l.val(""),u.val(""),p.val(""),b.prop("checked",!0),m.prop("checked",!1),v.prop("checked",!1);let e="";a&&(e="//"+a),L();h(e+"/js","GET",$.attr("name")).appendTo("body").submit(),y.setValue(""),_.setValue(""),E.setValue("")}function z(){return i.html=w.val(),i.css=k.val(),i.js=S.val(),i.console=b.prop("checked"),i.hide=m.prop("checked"),i.babel=v.prop("checked"),i}function G(){const e=i.css,t=i.js,n=i.html,s=i.console,o=i.babel;if(""==e&&""==t&&""==n)return;let r="";a&&(r="//"+a),L();const c=h(r+"/js","POST",$.attr("name"));d("js",t).appendTo(c),d("css",e).appendTo(c),d("html",n).appendTo(c),g("console",""+(!0===s)).appendTo(c),g("babel",""+(!0===o)).appendTo(c),c.appendTo("body"),c.submit().remove()}function L(){if(!x)throw"No template available for result destination";if(!$)throw"Cannot insert new result destination";const e=x.clone();$.replaceWith(e),$=e}function M(){const e=n;y.refresh(),_.refresh(),E.refresh(),n=e}return{setUIInnerHtml:C,resize:M,writeResult:G,save:z,clear:O,load:T,run:I,generate:P,registerExternalLibChange:A}}():function(){const n={html:null,css:null,js:null,console:!1,hide:!1,babel:null};let i=null,o=null,r=null,l=null;function f(a){let d=null;if(i)return i;l=null,r=c(),i=!0;const h=p().addClass("s-btn__primary").append(e('<span class="icon-play-white _hover">'),e("<span>").text(" "+__tr(["Выполнить код"], undefined, "ru", []))).click((function(){m(),d.hide()})),g=p().addClass("hideResults").text(__tr(["Скрыть результаты"], undefined, "ru", [])).click((function(){b(),d.show()}));g.hide(),d=s("popout-code").append(u(__tr(["Развернуть фрагмент"], undefined, "ru", [])).addClass("snippet-expand-link")).click((function(){const n=l;if(n){const a=n.element;a.removeClass("expanded-snippet"),a.find(".snippet-expand-link").text(__tr(["Развернуть фрагмент"], undefined, "ru", [])),a.find(".snippet-show-link, .snippet-show-link-chevron").show();const i=n.parent,s=i.children();s.length?e(s[n.indexWithinParent]).before(a):e(i).append(a),l=null,e(".topbar, .container, .top-bar, #footer").show(),f.show(),e(t).scrollTop(S)}else{S=e(t).scrollTop();const n=e(this).closest(".snippet");l={element:n,indexWithinParent:n.index(),parent:n.parent()},n.addClass("expanded-snippet"),n.find(".snippet-expand-link").text(__tr(["Вернуться к сообщению"], undefined, "ru", [])),n.find(".snippet-show-link, .snippet-show-link-chevron").hide(),e(".topbar, .container, .top-bar, #footer").hide(),e("body").append(n),f.hide()}}));const f=e('<input class="copySnippet s-btn s-btn__filled" type="button">').click((function(){const t=e("#show-editor-button"),a=e("#post-editor").find("textarea.wmd-input");if(t.is(":visible")){const n=t.offset().top;e("html").animate({scrollTop:n-60}),e("body").animate({scrollTop:n-60},{complete:function(){t.children("input").click()}})}else{const t=a.offset().top;e("html, body").animate({scrollTop:t-60})}const i=v(n);a.val(a.val()+"\n\n"+i),StackExchange.MarkdownEditor.refreshAllPreviews()}));f.val(__tr(["Копировать код в ответ"], undefined, "ru", []));const w=s("snippet-ctas").append(h,f,g);w.append(d),o=s("snippet-result-code").append(r).hide();const k=s("snippet-result").append(w,o);return a.append(k),i}function m(){r&&r.remove(),r=c(),o.append(r),r.parent().is(":hidden")&&(r.closest(".snippet-result").find(".hideResults").css("display",""),r.parent().slideDown(200,(function(){if(l)return;const t=s("popout").append(u(__tr(["На всю страницу"], undefined, "ru", []))),n=s("popin").append(u(__tr(["Закрыть"], undefined, "ru", []))).hide();t.click((function(){r.data("_style",r.attr("style")),r.css({position:"fixed",top:0,left:0,width:"100%",height:"100%","background-color":"#FFFFFF","z-index":9e3}),r.parent().css("position",""),e(this).hide(),n.show(),e("body").css("overflow","hidden")})),n.click((function(){r.removeAttr("style"),r.attr("style",r.data("_style")),r.parent().css("position","relative"),e(this).hide(),t.show(),e("body").css("overflow","")})),e(this).append(t,n)}))),k()}function b(){const t=r.parent();t.is(":visible")&&(r.closest(".snippet-result").find(".hideResults").hide(),t.children(".popout, .popin").remove(),t.slideUp(200,(function(){e(this).hide(),r.remove(),r=null})))}function w(e){const t=e.css,a=e.js,i=e.html,s=e.console,o=e.hide,r=e.babel;null!=t&&(n.css=t),null!=a&&(n.js=a),null!=i&&(n.html=i),s&&(n.console=s),o&&(n.hide=o),r&&(n.babel=r)}function k(){const e=n.css,t=n.js,i=n.html,s=n.console,o=n.babel;if(""==e&&""==t&&""==i)return;var c="";a&&(c="//"+a);h(c+"/js","POST",r.attr("name")).append(d("js",t),d("css",e),d("html",i),g("console",""+(!0===s)),g("babel",""+(!0===o))).appendTo("body").submit().remove()}function x(){}return{resize:x,writeResult:k,load:w,hide:b,run:m,generate:f}}(),f){const n=function(){l&&(l.setUIInnerHtml(i),l.generate(o),l.resize(),e(t).resize((function(){l&&l.resize()})),o.data("_snippet",l),r.state&&l.load(r.state))};StackExchange.using("snippetsJsCodeMirror",(function(){setTimeout((function(){(i?e.when():e.ajax("/snippets/editor-ui",{success:function(e){i=e}})).then(n)}),1)}))}else l.generate(o),o.data("_snippet",l),r.state&&l.load(r.state)}}))}function b(e,t,n){return e.replace(/^(?=.)/gm,new Array(t*n+1).join(" "))}function v(e){let t="\n\n\x3c!-- begin snippet: js hide: "+e.hide+" console: "+e.console+" babel: "+e.babel+" --\x3e\n\n";const n=e.js,a=e.css,i=e.html;return""!=n&&(t+="\x3c!-- language: lang-js --\x3e\n\n"+b(n,1,4)+"\n\n"),""!=a&&(t+="\x3c!-- language: lang-css --\x3e\n\n"+b(a,1,4)+"\n\n"),""!=i&&(t+="\x3c!-- language: lang-html --\x3e\n\n"+b(i,1,4)+"\n\n"),t+="\x3c!-- end snippet --\x3e\n\n",t}function w(e,t,n,a){const i=/<!--\s+language:\s*lang-js\s+-->([\s\S]*?)(?:<!--\s+language:|$)/gi,s=/<!--\s+language:\s*lang-css\s+-->([\s\S]*?)(?:<!--\s+language:|$)/gi,o=/<!--\s+language:\s*lang-html\s+-->([\s\S]*?)(?:<!--\s+language:|$)/gi;try{const r=i.exec(e),c=s.exec(e),l=o.exec(e);let u="",d="",h="";if(r&&(u=r[1].trim().replace(/^    /gm,"")),c&&(d=c[1].trim().replace(/^    /gm,"")),l&&(h=l[1].trim().replace(/^    /gm,"")),""==u&&""==d&&""==h)return null;return{js:u,css:d,html:h,console:n,hide:t,babel:a}}catch(e){return null}}const k={};let S;function x(e){let t=StackExchange.snippets.renderer;if(!t)return e;let n=t;if(!("sandbox"in document.createElement("iframe")))return e;return e=e.replace(/<!--\s+begin snippet:\s*[a-z]+\s*(?:hide:\s*([a-zA-Z]+))?\s*(?:console:\s*([a-zA-Z]+))?\s*(?:babel:\s*([a-zA-Z]+))?\s+-->([\s\S]*?)<!--\s+end snippet\s+-->/gi,(function(e,t,a,i,s){return n(s,t,a,i)}))}function $(){StackExchange.snippets.renderer&&StackExchange.snippets.redraw||(StackExchange.snippets.redraw=function(){e("div.snippet").each((function(){const t=e(this);if(t.closest(".downvoted-answer").length>0)return!0;y(t)}))},StackExchange.snippets.renderer=function(e,t,n,a){const i=w(e,t=!0===t||"true"===(t||"").toLowerCase(),n=!0===n||"true"===(n||"").toLowerCase(),a=!0===a||"true"===(a||"").toLowerCase());if(!i)return e;const o=s("snippet").data({lang:"js",hide:t,console:n}),c=s("snippet-code");t&&c.addClass("snippet-currently-hidden"),o.append(c);const u=i.js,d=i.css,h=i.html;u&&c.append(l("js").append(f(u))),d&&c.append(l("css").append(f(d))),h&&c.append(l("html").append(f(h)));const g=r();return m(c,{state:i}),k[g]=o,"<pre>"+g+"</pre>"},StackExchange.snippets.redraw())}function y(t){let n=t.find(".snippet-code");0==n.length&&(n=t);const a={js:n.find("pre.snippet-code-js").text(),css:n.find("pre.snippet-code-css").text(),html:n.find("pre.snippet-code-html").text(),console:!0===t.data("console"),hide:!0===t.data("hide"),babel:!0===t.data("babel")};if(m(n,{state:a}),(StackExchange.options.user.isAnonymous||0==t.parent().length||0==e("textarea#wmd-input").length||e(".js-popup-suggested-edit").length)&&t.find(".copySnippet").hide(),!0===t.data("hide")){n.hide(),n.addClass("snippet-currently-hidden"),t.find(".snippet-display").remove();const a=s("snippet-display").attr("style","vertical-align: center").append(e("<p>").append(e('<a class="snippet-show-link-chevron"><span class="expander-arrow-hide" style="vertical-align: middle;"></span><a class="snippet-show-link"><span class="show-hide" data-ishidden="true" style="vertical-align: middle"></span></a>')));a.find("span.show-hide").text(__tr(["Показать код"], undefined, "ru", [])),a.click((function(){n.toggle();const t=e(this),a=t.find(".show-hide");!0===a.data("ishidden")?(a.text(__tr(["Скрыть код"], undefined, "ru", [])),t.find(".expander-arrow-hide").removeClass("expander-arrow-hide").addClass("expander-arrow-show"),a.data("ishidden",!1)):(a.text(__tr(["Показать код"], undefined, "ru", [])),t.find(".expander-arrow-show").removeClass("expander-arrow-show").addClass("expander-arrow-hide"),a.data("ishidden",!0))})),t.prepend(a)}else n.show().removeClass("snippet-currently-hidden"),t.find(".snippet-display").remove()}StackExchange.snippets=function(){let a=!0;return{init:function(){$();t.StackExchange.MarkdownEditor&&t.StackExchange.externalEditor&&a&&(a=!1,StackExchange.externalEditor.init({thingName:"snippet",thingFinder:i,editLabel:__tr([" редактировать пример кода"], undefined, "ru", []),getDivContent:function(e){const t=e?w(e.code,e.hide,e.console,e.babel):null;var n=s("modal auto-center snippet-modal");return m(n,{markdownPluginMode:!0,state:t}),n},buttonTooltip:__tr(["Фрагмент кода на JavaScript/HTML/CSS"], undefined, "ru", []),buttonImageUrl:"/Content/Shared/balsamiq/wmd-mockup-button.png",onShow:function(t){const a=e(".snippet-modal");a.on("popupClosing",(function(e){const i="esc"==e.closeTrigger;i&&!n||(!i||confirm(__tr(["Вы уверены, что хотите сбросить все изменения?"], undefined, "ru", []))?function(e){const n=a.data("_snippet").save();if(e||""==n.html&&""==n.css&&""==n.js)t(null);else{const e=v(n);t(e,e)}}(i):e.preventDefault())}))}}));StackExchange.MarkdownEditor&&StackExchange.MarkdownEditor.creationCallbacks.add((function(t,n){t.getConverter().hooks.chain("preConversion",x);const a=e("#wmd-preview"+n);a.on("wmdrefresh",(function(){a.find("pre").each((function(){const t=e(this),n=t.text();if(k[n]){const a=k[n];delete k[n],y(a),t.replaceWith(e("<p>").append(a))}}))}))}))},initSnippetRenderer:$,makeSnippets:x};function i(e,t,n,a,i){return e.replace(/<!--\s+begin snippet:\s*[a-z]+\s*(?:hide:\s*([a-zA-Z]+))?\s*(?:console:\s*([a-zA-Z]+))?\s*(?:babel:\s*([a-zA-Z]+))?\s+-->([\s\S]*?)<!--\s+end snippet\s+-->/gi,(function(e,o,r,c,l,u){const d={payload:{code:l,hide:"true"===(o||"").toLowerCase(),console:"true"===(r||"").toLowerCase(),babel:"true"===(c||"").toLowerCase()},pos:s(e,t,u),len:e.length};return-1===d.pos?e:(i.push(d),e+"\n\n"+n+a+"-"+(i.length-1)+"%")}));function s(e,t,n){let a=-1,i=-1;for(;i=t.indexOf(e,i+1),-1!=i;)(a<0||Math.abs(i-n)<Math.abs(i-a))&&(a=i);return a}}}()}(jQuery,window)},19062:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.sidebar={initCollectionWidget:function(e){var t=$(".js-in-these-collections-widget").parent();t.on("click",".js-fetch-add-to-collection-modal",(function(t){var n=$(t.target);n.hasClass("is-loading")||(n.addClass("is-loading"),StackExchange.helpers.loadModal("/collections/modal-add-to-collection?postId="+e).always((function(){n.removeClass("is-loading")})))})),t.on("click",".js-collections-widget--show-all",(function(e){$(e.target).add(".js-widget-collection.d-none").toggleClass("d-none")}))}}},52:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.expandableOverflow={init:function(e,t){if(!e||!t)return;const n=new ResizeObserver((e=>{const n=e[0].target;n.scrollHeight>n.clientHeight?(n.classList.add("v-truncate-fade"),null==t||t.classList.remove("v-hidden")):(n.classList.remove("v-truncate-fade"),null==t||t.classList.add("v-hidden"))}));t.addEventListener("click",(()=>{n.disconnect(),e.classList.remove("v-truncate-fade"),e.classList.add("h-auto","hmx-initial"),t.classList.add("v-hidden")}),!1),n.observe(e)}}},65431:()=>{var e;e=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e){e.bindCommunityWikiConfirmation=function(e){e.find("input[type=checkbox][name=communitymode]").off("click").one("click",(()=>confirm(__tr(["Вы уверены, что хотите сделать данное сообщение общим для сообщества?$blankLine$Данный шаг лишает вас прав автора, и вы не сможете больше зарабатывать репутацию, когда сообщение получает голоса «за». Данное решение нельзя будет отменить без помощи модератора."], {blankLine: "\n\n"}, "ru", []))))}}(e||(e={}))},82813:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},$(document).on("click",".js-feed-link",(function(e){const t=$(this),n=t.siblings(".js-feed-link-modal").clone();n.length>0&&(e.preventDefault(),StackExchange.helpers.showModal(n,{returnElements:t,shown:function(){n.find(".s-input").focus().select()}}))}))},13149:()=>{StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange.ga=function(){if(StackExchange.ga&&StackExchange.ga.inited)return StackExchange.ga;var e,t=0,n=null;const a={};var i=function(e){e.find("[data-ga]").each((function(){const e=$(this),t=e.is("form"),n=t?"submit":"click";e.on(n,(n=>{const a=l(e);null!==a&&(o(e,a),t&&r(e,a))}))})),e.find("[data-ga-action]").each((function(){const e=$(this);e.on("change",(()=>c(e)))}))},s=function(t,n,a,i){if(function(e){try{if(!StackExchange.options.enableLogging)return;console.log("StackExchange.ga: "+e)}catch(e){}}(`track: category: '${t}', action: '${n}', label: '${a}'`),e&&null!=t&&null!=n)for(var s=0;s<e.trackingCodes.length;s++)p(s),e.tracker(d(s,"send"),"event",t,n,a,void 0,i)},o=function(t,n){e&&(void 0===n&&(n=l(t)),null!==n&&s(n.category,n.action,n.label,n.fields))},r=function(t,n){if(!e)return;if(void 0===n&&(n=l(t)),null===n)return;const i=t.attr("id"),o=a[i];if(void 0!==o){for(var r in o){const e=`${n.inputActionPrefix} | ${r}`,t=o[r];s(n.category,e,t,{nonInteraction:!1})}a[i]={}}},c=function(n){if(!e)return;var i;i=n.is(":checkbox")?n.is(":checked"):n.is("select")?n.find(":selected").toArray().map((e=>$(e).data("ga-value")||$(e).val())).join(" "):n.data("ga-value")||n.val();const s=n.closest("form");if(0===s.length||null===i)return;var o=s.attr("id");void 0===o&&(o="ga-form-"+t++,s.attr("id",o));let r=a[o];void 0===r&&(r=a[o]={});const c=n.attr("data-ga-action"),l="false"!==n.attr("data-ga-is-pii")?"PII Omitted":i;r[c]=l},l=function(e){const t=e.data("ga");return void 0===t?null:{category:t[0],action:t[1],label:t[2],inputActionPrefix:t[3],fields:t[4]}},u=function(e){return`tracker_${e}`},d=function(e,t){if(0==e)return t;return`${u(e)}.${t}`};function h(){var e=window.location.origin,t=new URL(window.location.href);t.searchParams.delete("email"),t.searchParams.delete("auth"),t.searchParams.delete("e");var n=t.href,a=n.replace(e,"");return{href:n,relativePath:a}}function g(e){var t=e.toFixed(0).toString();return t.length<2?"0"+t:t}function p(t){var a,i,s;e&&(e.sendTitles||e.tracker(d(t,"set"),"title","Channel Page"),n&&e.tracker(d(t,"set"),"dimension6",n),e.tracker(d(t,"set"),"dimension8",(a=new Date,i=-a.getTimezoneOffset(),s=i>=0?"+":"",a.toISOString().slice(0,-1)+s+g(i/60)+":"+g(i%60))),e.tracker(d(t,"set"),"dimension11",h().href))}return{inited:!1,init:function(t){if(!t)return;if(!t.tracker)return;if(!t.trackingCodes||0===t.trackingCodes.length)return;e=t;const a={allowLinker:!0};let s="auto";window.location.host.indexOf("stackexchange.com")>=0&&(s="stackexchange.com"),StackExchange.options.user.accountId&&(a.userId=StackExchange.options.user.accountId.toString()),e.tracker("create",t.trackingCodes[0],s,a),e.autoLink&&e.autoLink.length>0&&(e.tracker("require","linker"),e.tracker("linker:autoLink",t.autoLink)),e.tracker("set","transport","beacon");for(var o=1;o<t.trackingCodes.length;o++)e.tracker("create",t.trackingCodes[o],s,u(o),a);if(t.checkDimension){var r=document.createElement("ins");r.className="AdSense",r.style.display="block",r.style.position="absolute",r.style.top="-1px",r.style.height="1px",document.body.appendChild(r),StackExchange.ga.setDimension(t.checkDimension,r.clientHeight?"0":"1"),document.body.removeChild(r)}i($(document)),e.tracker((e=>{e&&(n=e.get("clientId")),StackExchange.gaInitialized.resolve()})),StackExchange.ga.inited=!0},bindHandlers:i,setCampaign:function(t,n,a){if(e)for(var i=0;i<e.trackingCodes.length;i++){const s=d(i,"set");t&&e.tracker(s,"campaignMedium",t),n&&e.tracker(s,"campaignName",n),a&&e.tracker(s,"campaignSource",a)}},setDimension:function(t,n){if(e)for(var a=0;a<e.trackingCodes.length;a++)e.tracker(d(a,"set"),t,n)},setTitle:function(t){if(e)for(var n=0;n<e.trackingCodes.length;n++)e.tracker(d(n,"set"),"title",t)},setUrl:function(t){if(e)for(var n=0;n<e.trackingCodes.length;n++)e.tracker(d(n,"set"),"page",t)},track:s,trackElement:o,trackFormInputs:r,trackPageView:function(){if(e)for(var t=0;t<e.trackingCodes.length;t++)p(t),e.tracker(d(t,"send"),"pageview",h().relativePath)},recordInputChange:c,getClientId:function(){if(e)return n}}}()},18876:()=>{var e;e=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e){!function(t){class n{constructor(e){this.cookieId=e.attr("data-cookie"),this.expireDate=new Date(+e.attr("data-expire-date"))}setCookie(e){$.cookie(this.cookieId,e,{expires:this.expireDate,path:"/"})}ctaClicked(){this.setCookie(`2;${Date.now()}`)}dismissed(){this.setCookie(`4;${Date.now()}`)}}function a(t,a){const i=new n(t);return t.find(".js-link").click((()=>{i.ctaClicked(),a()})),t.find(".js-dismiss").click((n=>{n.preventDefault(),i.dismissed(),a(),"true"===t.attr("data-is-site-sat")&&$.post("/survey/site-satisfaction/dismiss",{fkey:e.options.user.fkey})})),i}function i(){$(".js-announcement-banner").animate({height:"0",opacity:0},"fast","linear",(function(){$(this).remove()})),$(".js-notice-sidebar-popover").animate({opacity:0},"fast","linear",(function(){$(this).remove()}))}t.announcementBannerInit=function(){a($(".js-announcement-banner"),i)},t.sidebarPopoverInit=function(){const e=$(".js-notice-sidebar-popover");a(e,i);var t=$(window),n=$("#footer"),s=!0,o=$("#content"),r=$("#left-sidebar"),c=$("#js-gdpr-consent-banner"),l=$(".js-dismissable-hero"),u=$(".container");function d(a){var i,d,h,g,p,f;e.attr("style",`bottom: ${p=t.height()-n[0].getBoundingClientRect().top,f=16,p>0&&(f=p+16),c.is(":visible")&&(f+=c[0].getBoundingClientRect().height),l.is(":visible")&&(f+=l[0].getBoundingClientRect().height),f}px !important; left: ${i=o[0].getBoundingClientRect().left,d=r.width(),h=e.width(),g=8,i>d&&(g=i-h-8),Math.max(8,g)}px !important;`),s&&(a||u.scrollTop()>0)&&(s=!1,e.removeClass("d-none"))}const h=(e,t)=>setTimeout((()=>d(e)),10);var g,p;$(document).on("scroll",(function(){clearTimeout(g),g=h(!0)})),$(window).on("resize",(function(){clearTimeout(p),p=h(!1)})),h(!0)},t.researchBannerInit=function(){var t=$(".js-research-banner"),a=new n(t),i=function(){var e=$(this).closest(".research-banner__state");if(!e)return!1;var t=$(".js-research-banner"),n=t.find(".research-banner__state");n.hide();var a=n.index(e),i=$(n.get(a+1));t.removeClass(e.data("propagateClass")),t.addClass(i.data("propagateClass")),i.show()},s=function(t){e.helpers.showToast(t,{type:"danger",transientTimeout:3e3})};t.find("form.js-submit").submit((function(n){return n.preventDefault(),$.ajax({type:"POST",url:t.data("cta-url"),data:{fkey:e.options.user.fkey}}).done((function(e){e.success?a.ctaClicked():s(e.message)})).fail(s),i.call(this),!1})),t.find(".js-research-dismiss").click((()=>(a.dismissed(),t.remove(),!1))),t.find(".js-research-banner-state .js-research-confirm").click(i)},t.researchToastInit=function(){const t=$(".js-research-toast"),n=t.attr("data-campaign"),i=a(t,(()=>e.helpers.hideToasts()));t.find(".js-link").click((()=>e.gps.track("research_toast.click",{campaign:n}))),t.closest(".js-toast").find(".js-dismiss").click((()=>{e.gps.track("research_toast.dismiss",{campaign:n}),i.dismissed()})),e.gps.track("research_toast.show",{campaign:n})}}(e.Notice||(e.Notice={}))}(e||(e={}))},72046:()=>{var e;e=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e){!function(t){function n(t){const n=t.closest(".js-outdated-answers").find(".js-modal-container");let a=t.data("post-id");$.ajax({url:"/posts/outdated/modal/"+a,dataType:"html",type:"GET",success:function(t){n.html(t),setTimeout((()=>Stacks.showModal(n.find("#js-outdated-answers-modal")[0])),50),$(".js-submit-outdated-answer").on("click",(function(t){!function(t){let n=0,a=$(".js-outdated-options"),i=a.closest(".js-outdated-answers"),s=i.data("answer-type"),o=i.data("position-on-page"),r=i.data("score");a.find(".s-checkbox:checked").each((function(e,t){let a=$(t).data("answer-flag-value");n|=a})),e.using("gps",(function(){e.gps.track("outdated_prompt.yes_detail",{OutdatedAnswerOptions:n,AnswerType:s,PositionOnPage:o,AnswerId:t,Score:r})}))}(a)}))}})}function a(e){let t=$(`.js-outdated-answers[data-post-id=${e}]`);t.find(".js-outdated-interactions").addClass("d-none"),t.find(".js-outdated-svg").removeClass("native"),t.find(".js-outdated-answer-prompt").text(__tr(["Thanks for your feedback on this answer."], undefined, "ru", []))}t.initAnon=function(e){e&&($(".js-outdated-yes").on("click",(function(e){let t=$(this).data("post-id");n($(this)),a(t)})),$(".js-outdated-no").on("click",(function(){a($(this).data("post-id"))})))},t.openModal=n,t.userVoted=a}(e.OutdatedAnswers||(e.OutdatedAnswers={}))}(e||(e={}))},41235:()=>{StackExchange=window.StackExchange=window.StackExchange||{},function(e){!function(e){let t;!function(e){e[e.Question=1]="Question",e[e.Answer=2]="Answer",e[e.Wiki=3]="Wiki",e[e.TagWikiExcerpt=4]="TagWikiExcerpt",e[e.TagWiki=5]="TagWiki",e[e.ModeratorNomination=6]="ModeratorNomination",e[e.WikiPlaceholder=7]="WikiPlaceholder",e[e.PrivilegeWiki=8]="PrivilegeWiki",e[e.Article=9]="Article",e[e.HelpArticle=10]="HelpArticle",e[e.Collection=12]="Collection",e[e.ModeratorQuestionnaireResponse=13]="ModeratorQuestionnaireResponse"}(t=e.PostTypeId||(e.PostTypeId={}))}(e.Models||(e.Models={}))}((window.StackOverflow=window.StackOverflow||{})||{})},33790:()=>{var StackExchange;StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(StackExchange){var ads;(function(ads){const modalClass=".js-ad-report";let adReports;class AdReports{constructor(e,t,n){var a;if(this.googletag=e,this.adReportUrl=t,this.adReportText=n,this.handleSlotRendered=e=>{if(e&&e.slot){var t=e.slot.getSlotElementId();if(t){var n=$("#"+t).parent(".js-zone-container").find(".js-report-ad-button-container");if((e.creativeId||e.lineItemId)&&(!clc.options.dh||-1===clc.options.dh.indexOf(e.lineItemId))){var a=$(`<button class="js-report-ad s-btn s-btn__link fs-fine mt2 float-right">${this.adReportText}</button>`);n.append(a),a.data("modal-url",this.adReportUrl),a.data("ad-unit",e.slot.getSlotElementId());var i=JSON.stringify(e);a.data("google-event-data",i),this.initButton(a)}}}},this.googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRendered),Array.isArray(null===(a=null===clc||void 0===clc?void 0:clc.dfp)||void 0===a?void 0:a.slotsRenderedEvents))for(var i=0;i<clc.dfp.slotsRenderedEvents.length;i++)this.handleSlotRendered(clc.dfp.slotsRenderedEvents[i])}initButton(e){e.off().on("click",(t=>{t.preventDefault();const n=e.data("modal-url"),a=e.data("google-event-data");return this.loadModal(n,e,a),!1}))}loadModal(url,$link,googleEventData){StackExchange.helpers.loadModal(url,{returnElements:$link}).then((()=>{this.initForm(googleEventData)})).fail((responseText=>{var messageHtml="",response=eval("("+responseText+")");messageHtml=response&&response.isLoggedOut?$("<span>").text(__tr(["Your login session has expired, please login and try again."], undefined, "ru", [])).html():$("<span>").text(__tr(["An error occurred when loading the report form - please try again"], undefined, "ru", [])).html(),StackExchange.helpers.showToast(messageHtml,{type:"danger"})}))}removeModal(){StackExchange.helpers.closePopups($(modalClass),"dismiss")}initForm(e){const t=$(".js-ad-report-form"),n=t.find(".js-json-data"),a=t.find(".js-ad-report-reason"),i=t.find(".js-ad-report-reason-other"),s=t.find(".js-file-uploader-input"),o=t.find(".js-image-uploader"),r=t.find(".js-clear-image-upload"),c=t.find(".js-image-uploader-text"),l=t.find(".js-image-uploader-preview"),u=t.find(".js-image-uploader-link"),d=t.find(".js-file-error"),h=["image/png","image/jpg","image/jpeg"],g=t.find(".js-drag-drop-enabled"),p=t.find(".js-drag-drop-disabled");u.on("click",(function(e){e.preventDefault(),s.trigger("click")})),n.val(e),a.on("change",(e=>{i.toggleClass("d-none","3"!==$(e.target).val())}));s.change((function(){var e=s[0];f()&&b(e.files)}));var f=function(){const e=__tr(["Please select a PNG or JPG file"], undefined, "ru", []),t=__tr(["The file must be under 2 MiB"], undefined, "ru", []);var n=s[0];if(null==n.files)return!1;var a=n.files[0];return null==a?(m(!0),!1):h.indexOf(a.type)<0?(d.text(e),d.removeClass("d-none"),m(!0),!1):a.size>2097152?(d.text(t),d.removeClass("d-none"),m(!0),!1):(d.addClass("d-none"),m(!1),!0)},m=function(e){d.parent().toggleClass("has-error",e)},b=function(e){o.removeClass("p16 ba bas-dashed bc-black-100"),r.removeClass("d-none"),c.addClass("d-none");var t=new FileReader;t.onload=function(e){null!=e.target&&(l.prop("src",e.target.result),l.removeClass("d-none"))},t.readAsDataURL(e[0])};r.on("click",(e=>{e.preventDefault(),s.val(""),l.prop("src",""),l.addClass("d-none"),r.addClass("d-none"),c.removeClass("d-none"),o.addClass("p16 ba bas-dashed bc-black-100")}));try{s[0].files=null,o.on("dragenter dragover dragleave drop",(function(e){e.preventDefault(),e.stopPropagation()})),o.on("dragenter dragover",(function(e){o.removeClass("bas-dashed"),o.addClass("bas-solid bc-black-100")})),o.on("dragleave drop",(function(e){o.removeClass("bas-solid bc-black-100"),o.addClass("bas-dashed")})),o.on("drop",(function(e){var t=e.originalEvent.dataTransfer.files;FileReader&&t&&1===t.length&&(s[0].files=t,f()&&b(t))}))}catch(e){g.addClass("d-none"),p.removeClass("d-none")}t.off().on("submit",(e=>{if(e.preventDefault(),!f())return!1;t.find("[type=submit]").prop("disabled",!0);var a=JSON.parse(n.val()||"{}");a.Reason=parseInt(t.find(".js-ad-report-reason:checked").val(),10),a.Description=i.val(),n.val(JSON.stringify(a));var s=new FormData(t[0]);return $.ajax({type:t.prop("method"),url:t.prop("action"),data:s,cache:!1,contentType:!1,processData:!1}).then(((e,t,n)=>{const a=n.getResponseHeader("content-type")||"";if("string"==typeof e&&0==a.indexOf("text/html")){const t=$(e).find(".js-modal-content");t.length>0&&$(".js-modal-content").replaceWith(t)}else this.removeModal(),StackExchange.helpers.showToast(__tr(["Спасибо за ваш отзыв. Мы рассмотрим это в соответствии с нашими нормами поведения и примем меры при необходимости."], undefined, "ru", []),{type:"success"})}),(function(){StackExchange.helpers.showToast(__tr(["Error uploading ad report."], undefined, "ru", []),{type:"danger"})})).always((function(){t.find("[type=submit]").prop("disabled",!1)})),!1}))}}function init(e,t,n){adReports||(adReports=new AdReports(e,t,n))}ads.init=init})(ads=StackExchange.ads||(StackExchange.ads={}))}(StackExchange||(StackExchange={}))},78596:()=>{var e;e=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},function(e){!function(t){t.showConfirmModal=function(n){var a=$('\n<aside class="s-modal" role="dialog" aria-labelledby="confirm-modal-title" aria-describedby="confirm-modal-body" aria-hidden="true">\n    <div class="s-modal--dialog ps-relative" data-controller="se-draggable" role="document">\n        <h1 class="s-modal--header fw-bold" id="confirm-modal-title" data-se-draggable-target="handle"></h1>\n        <div class="s-modal--body fs-body2" id="confirm-modal-body"></div>\n        <div class="d-flex gs8 gsx s-modal--footer">\n            <button class="flex--item s-btn js-ok-button s-btn__primary" type="button"></button>\n            <button class="flex--item s-btn js-cancel-button js-modal-close js-modal-initial-focus" type="button"></button>\n        </div>\n    </div>\n</aside>\n');const i=(e,t,n)=>{const i=a.find(e);t?i.append(t):n&&i.text(n)};return i("#confirm-modal-title",n.titleHtml,n.title),i("#confirm-modal-body",n.bodyHtml,n.body),i(".js-ok-button",n.buttonLabelHtml,n.buttonLabel||__tr(["OK"], undefined, "ru", [])),i(".js-cancel-button",void 0,__tr(["Отмена"], undefined, "ru", [])),new Promise(((i,s)=>{t.showModal(a,n),a.find(".js-ok-button").click((t=>{t.preventDefault(),i(!0),e.helpers.closePopups(a,"dismiss")})),a.on("popupClose",(e=>i(!1)))}))}}(e.helpers||(e.helpers={}))}(e||(e={}))},94650:(e,t,n)=>{var a={"./datepicker-af.js":[30480,4414,480],"./datepicker-ar-DZ.js":[88226,4414,8226],"./datepicker-ar.js":[37934,4414,7934],"./datepicker-az.js":[44876,4414,4876],"./datepicker-be.js":[69531,4414,9531],"./datepicker-bg.js":[32130,4414,2130],"./datepicker-bs.js":[3808,4414,3808],"./datepicker-ca.js":[58908,4414,8908],"./datepicker-cs.js":[31224,4414,1224],"./datepicker-cy-GB.js":[90016,4414,16],"./datepicker-da.js":[20487,4414,487],"./datepicker-de.js":[39018,4414,9018],"./datepicker-el.js":[58277,4414,3892],"./datepicker-en-AU.js":[15641,4414,5641],"./datepicker-en-GB.js":[64585,4414,4585],"./datepicker-en-NZ.js":[5623,4414,5623],"./datepicker-eo.js":[20463,4414,463],"./datepicker-es.js":[16227,4414,2298],"./datepicker-et.js":[67623,4414,7623],"./datepicker-eu.js":[40520,4414,520],"./datepicker-fa.js":[27618,4414,7618],"./datepicker-fi.js":[98444,4414,8444],"./datepicker-fo.js":[9383,4414,9383],"./datepicker-fr-CA.js":[82256,4414,2256],"./datepicker-fr-CH.js":[32909,4414,2909],"./datepicker-fr.js":[33283,4414,3283],"./datepicker-gl.js":[19036,4414,9036],"./datepicker-he.js":[35463,4414,5463],"./datepicker-hi.js":[42814,4414,2814],"./datepicker-hr.js":[9443,4414,9443],"./datepicker-hu.js":[77650,4414,7650],"./datepicker-hy.js":[77965,4414,7965],"./datepicker-id.js":[85832,4414,5832],"./datepicker-is.js":[46022,4414,6022],"./datepicker-it-CH.js":[95796,4414,5796],"./datepicker-it.js":[78457,4414,8161],"./datepicker-ja.js":[59970,4414,9970],"./datepicker-ka.js":[13172,4414,3172],"./datepicker-kk.js":[59807,4414,9807],"./datepicker-km.js":[10834,4414,834],"./datepicker-ko.js":[87171,4414,7171],"./datepicker-ky.js":[41391,4414,1391],"./datepicker-lb.js":[19724,4414,9724],"./datepicker-lt.js":[48457,4414,8457],"./datepicker-lv.js":[79681,4414,9681],"./datepicker-mk.js":[89348,4414,9348],"./datepicker-ml.js":[79989,4414,9989],"./datepicker-ms.js":[73726,4414,3726],"./datepicker-nb.js":[73391,4414,3391],"./datepicker-nl-BE.js":[50534,4414,534],"./datepicker-nl.js":[59930,4414,9930],"./datepicker-nn.js":[19796,4414,9796],"./datepicker-no.js":[89187,4414,9187],"./datepicker-pl.js":[49575,4414,9575],"./datepicker-pt-BR.js":[80013,4414,2579],"./datepicker-pt.js":[59021,4414,9021],"./datepicker-rm.js":[80337,4414,337],"./datepicker-ro.js":[66086,4414,6086],"./datepicker-ru.js":[51610,4414,1610],"./datepicker-sk.js":[78578,4414,8578],"./datepicker-sl.js":[20711,4414,13],"./datepicker-sq.js":[10424,4414,424],"./datepicker-sr-SR.js":[24743,4414,4743],"./datepicker-sr.js":[52223,4414,2223],"./datepicker-sv.js":[23717,4414,3717],"./datepicker-ta.js":[51367,4414,1367],"./datepicker-th.js":[94954,4414,4954],"./datepicker-tj.js":[46529,4414,6529],"./datepicker-tr.js":[47554,4414,7554],"./datepicker-uk.js":[8385,4414,8385],"./datepicker-vi.js":[57923,4414,7923],"./datepicker-zh-CN.js":[68837,4414,8837],"./datepicker-zh-HK.js":[3573,4414,3573],"./datepicker-zh-TW.js":[36225,4414,6225]};function i(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n.t(i,23)))}i.keys=()=>Object.keys(a),i.id=94650,e.exports=i},52443:(e,t,n)=>{"use strict";function a(e){return(...t)=>e()(...t)}n.d(t,{pK:()=>i,eu:()=>s,n$:()=>o});const i=a((()=>StackExchange.helpers.addSpinner)),s=(a((()=>StackExchange.helpers.addStacksSpinner)),a((()=>StackExchange.helpers.addLightbox)),a((()=>StackExchange.helpers.getLikelyErrorMessage)),a((()=>StackExchange.helpers.getRejectedMockXhr)),a((()=>StackExchange.helpers.getSpinnerImg)),a((()=>StackExchange.helpers.removeMessages)),a((()=>StackExchange.helpers.removeSpinner))),o=(a((()=>StackExchange.helpers.showErrorMessage)),a((()=>StackExchange.helpers.showInfoMessage)),a((()=>StackExchange.helpers.showMessage)),a((()=>StackExchange.helpers.showSuccessMessage)),a((()=>StackExchange.helpers.showModal)),a((()=>StackExchange.helpers.loadModal)),a((()=>StackExchange.helpers.showToast)),a((()=>StackExchange.helpers.hideToasts)),a((()=>StackExchange.helpers.suggestedTransientTimeout)),a((()=>StackExchange.helpers.toggleStacksPopover)),a((()=>StackExchange.helpers.queueStacksPopover)),a((()=>StackExchange.helpers.submitFormOnEnterPress)),a((()=>StackExchange.helpers.updateQueryStringParameter)),a((()=>StackExchange.helpers.DelayedReaction)),a((()=>StackExchange.helpers.closePopups)),a((()=>StackExchange.helpers.showStacksNotice)),a((()=>StackExchange.helpers.removeParameterFromQueryString)),a((()=>StackExchange.helpers.enableSubmitButton)),a((()=>StackExchange.helpers.disableSubmitButton)),a((()=>StackExchange.helpers.loadTicks)),a((()=>StackExchange.helpers.encodeHexHtmlEntities)),a((()=>StackExchange.helpers.noDiacritics)),a((()=>StackExchange.helpers.tagSeparator)),a((()=>StackExchange.helpers.sanitizeAndSplitTags)),new Promise((e=>{StackExchange.ready((()=>{e()}))})))},23801:(e,t,n)=>{"use strict";function a(e){const t=i(e);return function(e,t){if(0===e.length)throw`Couldn't find args for module "${t}". Did you forget to call @JavaScriptHelper.Args?`}(t,e),function(e,t){if(e.length>1)throw`Found too many instances of args for module "${t}". Did you call @JavaScriptHelper.Args too many times?`}(t,e),t[0]}function i(e){const t=function(e){const t=e.replace(/\.(t|j)sx?/,"");return $(`script[type="application/json"][data-role="module-args"][data-module-name="${t}"]`)}(e);return t.toArray().map((e=>JSON.parse($(e).text())))}n.d(t,{U:()=>a,Y:()=>i})},65311:e=>{"use strict";e.exports=jQuery}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var a={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,__webpack_require__.d(n,a),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>4414===e?"webpack-chunks/4414.ru.js":"webpack-chunks/"+e+"."+{13:"971ca3a726d25fa3f5ca",16:"f6bac64879f32e937354",58:"c50238aa2ecc974aec89",337:"323451f40962547e7ac9",424:"fe5a5032962b7bf5313f",463:"c664e1433587b8b001eb",480:"001cb67a34aa3bc5feba",487:"2265a218582ae8305a65",520:"de6fe62f94ad956d2f65",534:"a007df555ac8a2848c72",834:"346ffd4bae039efa6bfd",1224:"9527b31a95c4e8506697",1367:"cb2dc58d9f93bd37aef5",1391:"50da359f258c37389042",1610:"a7a8f8e518bee96bb336",2130:"b83f95c4b71f0bfdddd5",2223:"a9b459a62ee2eebae0bd",2256:"34cb97273e0b3ff0f0a9",2298:"366e51743a3d6e73f241",2579:"51b20217a29f8363ff38",2814:"7f6d6655639876b71a41",2909:"41f69ba76c6b215cd3c6",3172:"25a458b6792c3d86d120",3283:"4cd03281c570c47e9ade",3391:"8de39698597488090622",3573:"cf1ffd685574dc400c40",3717:"5dd0ceb4c029074145fe",3726:"46090aac44f36ca57205",3808:"a652f7a267dacacc705d",3892:"6b63a37803c8b3e83075",4585:"bf7d4c5bc36cda7b5043",4743:"d96ddee7bf2bfffd4843",4876:"6bab6a0f4e69f77e8ab2",4954:"8c24b9405ccf71d0e7a2",5463:"9da4cef33c4f7e975297",5623:"93e3d089921b5a7565bb",5641:"295a9b2c81530d8879d2",5796:"9c67b05cbc5be1266a7d",5832:"76f671c155c973df450c",6022:"c0917c9771b0596d953f",6086:"5c8bca1a9e22b7377a76",6225:"12346037c0fdef5d8675",6529:"5cc01f3536ee93cec74d",7171:"c2345da1395e57da09ca",7554:"a9f2c6edd75b4f6864a6",7610:"ab8caf46da7e8d6f0afe",7618:"2923fba477da83ae4c36",7623:"7b8b3d58e7e19e74d244",7650:"fd00ba42029f624af9eb",7923:"af05c6d6cd079ce11e7a",7934:"1c96b6828b2707ed2ec4",7965:"a533873a72d33e277229",8087:"3a168faa8190f876751a",8161:"5cac2d7da6a3149b5321",8226:"4126b0cc3df52dc75b7c",8385:"665ab480b0a43112f879",8444:"5e4f08514b6bf1a2173f",8457:"8dae0345335ac516ca09",8578:"64633ee38c8a4944d69c",8837:"dfe94fe385d8d6b87dde",8908:"f1159b4391e08b81ce67",9018:"de2a06f1a589bbf72550",9021:"160304f3744338dcaf48",9036:"5f835f2efc6b7f7b0fbc",9187:"d0a5bd0d0967775ba2b1",9348:"d376b3007e23c0b47fa5",9383:"eedd68857a5afd42141d",9443:"81b4dd729c6e1d50d634",9531:"85d3738a20004a31a399",9575:"a57c8b5c58103bed5917",9681:"ef4792cf2076d0b5c955",9724:"20f22492838bb15aea59",9796:"dcd37b43ff308ee674b8",9807:"07a7afc8a54ac45b18a6",9930:"33a1cc20a5cf7ed24c54",9970:"aad39ff9176dcac97095",9989:"8f05627fea65e0b2fab8"}[e]+".ru.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="stackoverflow:",__webpack_require__.l=(e,t,n,a)=>{if(inProgress[e])inProgress[e].push(t);else{var i,s;if(void 0!==n)for(var o=document.getElementsByTagName("script"),r=0;r<o.length;r++){var c=o[r];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==dataWebpackPrefix+n){i=c;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var a=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),s&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var e={9399:0};__webpack_require__.f.j=(t,n)=>{var a=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise(((n,i)=>a=e[t]=[n,i]));n.push(a[2]=i);var s=__webpack_require__.p+__webpack_require__.u(t),o=new Error;__webpack_require__.l(s,(n=>{if(__webpack_require__.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",o.name="ChunkLoadError",o.type=i,o.request=s,a[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[s,o,r]=n,c=0;if(s.some((t=>0!==e[t]))){for(a in o)__webpack_require__.o(o,a)&&(__webpack_require__.m[a]=o[a]);if(r)r(__webpack_require__)}for(t&&t(n);c<s.length;c++)i=s[c],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[s[c]]=0},n=self.webpackChunkstackoverflow=self.webpackChunkstackoverflow||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__={};(()=>{"use strict";__webpack_require__.p=document.getElementById("webpack-public-path").innerText+"Js/"})(),(()=>{"use strict";__webpack_require__(53766),__webpack_require__(69462);function e(e){const t=[...e.keys()];t.sort();for(const n of t)e(n)}StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},e(__webpack_require__(34e3)),e(__webpack_require__(30270));__webpack_require__(35763),__webpack_require__(16126),__webpack_require__(37347),__webpack_require__(19062),__webpack_require__(52),__webpack_require__(33790),__webpack_require__(65431),__webpack_require__(82813),__webpack_require__(13149),__webpack_require__(78596),__webpack_require__(18876),__webpack_require__(72046),__webpack_require__(41235),__webpack_require__(87218);var t=__webpack_require__(23801);var n=__webpack_require__(52443);StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},n.n$.then((async()=>{await async function(){if(window.siteIncludesLoaded)return Promise.resolve([]);window.siteIncludesLoaded=!0;const e=(0,t.Y)("site-includes/index.mod.ts");return Promise.all(e.map((e=>__webpack_require__(83133)(`./${e.moduleName}.mod`))))}()})),StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},e(__webpack_require__(69599))})()})();